]> source.dussan.org Git - vaadin-framework.git/commitdiff
Avoid NPE if a child cannot be found (#10039) 50/150/1
authorArtur Signell <artur@vaadin.com>
Tue, 23 Oct 2012 12:31:56 +0000 (15:31 +0300)
committerArtur Signell <artur@vaadin.com>
Tue, 23 Oct 2012 12:32:52 +0000 (15:32 +0300)
Change-Id: I756b5d8a66b89eedb335c23b1ae9610bdb80b2d0

client/src/com/vaadin/client/ComponentLocator.java

index e69c55d445e0c1e736eac2394565d069714ce0cb..47fb29777c7329800eba65bf72c95e7424aaf7ce 100644 (file)
@@ -332,6 +332,11 @@ public class ComponentLocator {
                 } catch (Exception e) {
                     return null;
                 }
+
+                if (element == null) {
+                    return null;
+                }
+
             }
         }