Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » NPE closing part (NPE when closing the second dynamic opned part)
NPE closing part [message #757052] Wed, 16 November 2011 04:24 Go to previous message
Beat Schaller is currently offline Beat Schaller
Messages: 31
Registered: July 2009
Member
I am working on an application opening dynamic parts as "editors". In an OpenEditor handler I open the part(s) dynamically.
This works with several parts like the 3.x editors as I wanted. All parts have the property "closable".

If I close the first part - all is okay. But If I close the second one I get an exception (see below). I tested with the 4.2M3 Build. And it's the same with the basic application, created when defining a new e4 project. I just added some id's, modified the OpenHandler and the behaviour is the same.

Is this a bug?

Thx for any help...
Beat



!ENTRY org.eclipse.e4.ui.workbench 4 0 2011-11-16 09:42:14.899
!MESSAGE Internal Error
!STACK 0
java.lang.NullPointerException
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.closePart(StackRenderer.java:700)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.access$7(StackRenderer.java:686)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer$6.close(StackRenderer.java:653)
at org.eclipse.e4.ui.widgets.CTabFolder.onMouse(CTabFolder.java:1787)
at org.eclipse.e4.ui.widgets.CTabFolder$1.handleEvent(CTabFolder.java:275)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:972)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:888)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:90)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:147)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:352)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:624)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:579)
at org.eclipse.equinox.launcher.Main.run(Main.java:1431)
at org.eclipse.equinox.launcher.Main.main(Main.java:1407)

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:e4 closes with EXCEPTION_ACCESS_VIOLATION
Next Topic:Controlling enable/disable menu of eclipse4.x
Goto Forum:
  


Current Time: Sat May 18 14:27:38 EDT 2013

Powered by FUDForum. Page generated in 0.01938 seconds