Change-Id: I5a9772e2d4082453923cfdca17bcef34e833adda
wrapper.destroy();
return super.remove(wrapper);
}
- return false;
+ return super.remove(w);
}
/**
*/
protected AbsoluteWrapper getChildWrapper(Widget child) {
for (Widget w : getChildren()) {
- AbsoluteWrapper wrapper = (AbsoluteWrapper) w;
- if (wrapper.getWidget() == child) {
- return wrapper;
+ if (w instanceof AbsoluteWrapper) {
+ AbsoluteWrapper wrapper = (AbsoluteWrapper) w;
+ if (wrapper.getWidget() == child) {
+ return wrapper;
+ }
}
}
return null;