I’m getting NPE from NavigationButton’s detach method. Looks like no check for null value is there in the code if the no NavigationManager exists as the parent:
public void detach() {
if (componentAttachListener != null) {
getNavigationManager().removeComponentAttachListener(
componentAttachListener);
}
super.detach();
}
May have to be changed to:
public void detach() {
if (componentAttachListener != null) {
NavigationManager nm = getNavigationManager();
if (nm != null) {
nm.removeComponentAttachListener(componentAttachListener);
}
}
super.detach();
}