Community
Participate
Working Groups
IIRC from todays Eclipse RCP training the offending line was: 802 MPerspective persp = (MPerspective) modelService.find(perspId, ps.get(0)); I suggest to use a type safe search method of the modelService. Simon, can you prepare a fix for this?
Why does typesafe search safe you from an NPE? Looking at the code you posted should we query in ps (which i assume is MPerspectiveStack) for a perspectiveId searching in the first perspective for a perspective looks odd to me, not?
(In reply to Thomas Schindl from comment #1) > Why does typesafe search safe you from an NPE? Looking at the code you > posted should we query in ps (which i assume is MPerspectiveStack) for a > perspectiveId searching in the first perspective for a perspective looks odd > to me, not? Sorry was a CCE. Maybe the position was incorrect, I wrote this bug from memory so that is is not forgotten. To see where this happens create a RCP app with perspective stack and perspective using the same ID and minimize one of your parts.
New Gerrit change created: https://git.eclipse.org/r/41339
Gerrit change https://git.eclipse.org/r/41339 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=c03b9f89aece8bba2ae2df52952236e6ebe7637f
Thanks Dirk.