Browse Source

#8500 Print an error message instead of throwing NPE if parent cannot be

found for some reason
tags/7.0.0.alpha2
Artur Signell 12 years ago
parent
commit
ea07d99b87

+ 8
- 1
src/com/vaadin/terminal/gwt/client/ui/AbstractComponentConnector.java View File

@@ -184,7 +184,14 @@ public abstract class AbstractComponentConnector extends AbstractConnector

// Set captions
if (delegateCaptionHandling()) {
getParent().updateCaption(this, uidl);
ComponentContainerConnector parent = getParent();
if (parent != null) {
parent.updateCaption(this, uidl);
} else {
VConsole.error("Parent of connector "
+ getClass().getName()
+ " is null. This is typically an indication of a broken component hierarchy");
}
}

/*

Loading…
Cancel
Save