Community
Participate
Working Groups
1. Start your inner. 2. Switch perspectives using the perspective switcher. 3. Ctrl+3 > Java. 4. Switch back using the perspective switcher. 5. An NPE is thrown. java.lang.NullPointerException at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.getTopLevelWindowFor(ModelServiceImpl.java:537) at org.eclipse.e4.ui.workbench.addons.perspectiveswitcher.PerspectiveSwitcher$1.handleEvent(PerspectiveSwitcher.java:105) at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:41) at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:188) at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:198) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149) at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:139) at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78) at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39) at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:73) at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58) at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:380) at org.eclipse.e4.ui.model.application.ui.advanced.impl.PerspectiveStackImpl.setSelectedElement(PerspectiveStackImpl.java:134) at org.eclipse.e4.ui.model.application.ui.advanced.impl.PerspectiveStackImpl.setSelectedElement(PerspectiveStackImpl.java:1) at org.eclipse.e4.ui.workbench.addons.perspectiveswitcher.PerspectiveSwitcher$11.widgetSelected(PerspectiveSwitcher.java:324) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
I have delivered a workaround to PerspectiveSwitcher. The bug is caused by the new code introduced by bug 316802.
I can't reproduce in I20100723-1415, but is there a problem still to be addressed? PW
(In reply to comment #2) > I can't reproduce in I20100723-1415, but is there a problem still to be > addressed? Yes, the PerspectiveSwitcher should be deconstructed with the help of uninjection when a workbench window has been closed. We should switch to the new method in 4.1. There's another bug for this general problem...I think.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
This is a mass change to close all e4 bugs marked with "stalebug" whiteboard. If this bug is still valid, please reopen and remove the "stalebug" keyword.