]> source.dussan.org Git - vaadin-framework.git/commitdiff
Avoid warning for RootConnector not having a parent
authorArtur Signell <artur@vaadin.com>
Tue, 3 Apr 2012 07:03:54 +0000 (10:03 +0300)
committerArtur Signell <artur@vaadin.com>
Wed, 4 Apr 2012 21:08:40 +0000 (00:08 +0300)
src/com/vaadin/terminal/gwt/client/ui/AbstractComponentConnector.java

index e4ca01f20038a900de647e94edc03dba1075ffc3..35f9bccbfeb258aa4f48da3886e517e004e33ae1 100644 (file)
@@ -138,12 +138,10 @@ public abstract class AbstractComponentConnector extends AbstractConnector
             ComponentContainerConnector parent = getParent();
             if (parent != null) {
                 parent.updateCaption(this);
-            } else {
+            } else if (!(this instanceof RootConnector)) {
                 VConsole.error("Parent of connector "
-                        + getClass().getName()
-                        + " ("
-                        + getConnectorId()
-                        + ") is null. This is typically an indication of a broken component hierarchy");
+                        + Util.getConnectorString(this)
+                        + " is null. This is typically an indication of a broken component hierarchy");
             }
         }