Community
Participate
Working Groups
The curSharedRef of models should always be checked for null values, since it might be null anyways. This becomes even more important related to Bug 457939, where the fix is to set curSharedRef to null in case of closing a perspective. I double checked every call to getCurSharedRef() in the platform code, and despite two places, every access of the curSharedRef has a null check before. The two places where there is no such check are ViewIntroAdapter#getIntroStack() WorkbenchIntroManager#getIntroStack() IMHO the null check should always be performed. The patch for Bug 457939 is currently blocked by this issue. Looking at the stacktrace added as comment to the patch [1], a NPE occurs on closing the intro. But at that point there should be no curSharedRef from my understanding. So the null check also makes semantically sense, since a closed part can not be maximized. [1] https://git.eclipse.org/r/#/c/41337
New Gerrit change created: https://git.eclipse.org/r/44555
Thanks Dirk. Fixed for M7
Gerrit change https://git.eclipse.org/r/44555 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=bf2da053585e62b2eebde8d9da12fe31f3990854
I don't see an issue anymore in the latest integration build. Tested with Eclipse 4.5.0 Integration Build: I20150428-0100.