NPE in showWindowThisTab

Appears randomly in 6.5.0, I can reproduce it easily by opening maximum number of different tabs and then switching to one of them and click Create to open its editor …


java.lang.NullPointerException
	at com.haulmont.cuba.web.toolkit.ui.CubaTabSheet$TabSheetBehaviourImpl.setTabCaption(CubaTabSheet.java:282)
	at com.haulmont.cuba.web.WebWindowManager.showWindowThisTab(WebWindowManager.java:646)
	at com.haulmont.cuba.web.WebWindowManager.showWindow(WebWindowManager.java:382)
	at com.haulmont.cuba.gui.WindowManager.openEditor(WindowManager.java:727)
	at com.haulmont.cuba.web.WebWindowManager.openEditor(WebWindowManager.java:159)
	at com.haulmont.cuba.gui.components.WindowDelegate.openEditor(WindowDelegate.java:250)
	at com.haulmont.cuba.web.gui.WebWindow.openEditor(WebWindow.java:445)
	at com.haulmont.cuba.gui.components.actions.CreateAction.internalOpenEditor(CreateAction.java:305)
	at com.haulmont.cuba.gui.components.actions.CreateAction.actionPerform(CreateAction.java:265)
	at com.haulmont.cuba.web.gui.components.WebButton.performAction(WebButton.java:44)
	at com.haulmont.cuba.web.gui.components.WebButton.lambda$new$61446b05$1(WebButton.java:36)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccesso

It seems to be cuba.web.mainTabSheetMode related. When I set cuba.web.mainTabSheetMode = MANAGED problem seems to have disappeared.

May be related to this https://youtrack.cuba-platform.com/issue/PL-9031

Hi,

Thank you for reporting the issue. Currently, we are trying to reproduce it reliably, fix will be available in the very next bug fix release.

:ticket: See the following issue in our bug tracker:

https://youtrack.cuba-platform.com/issue/PL-9031