Wenn ich ein Fenster/Perspective meines GUI schließe, bekomme ich eine NullPointerException beim Speichern des States, siehe Stack Trace.
Wo/was fehlt da noch, dass es geht (bei anderen Fenstern habe ich das Problem nicht)?
Ich habe mir schon einen Wolf getraced, kann aber nicht erkennen, warum es in einem Fall geht und in einem anderen nicht. Bestimmt ein ganz simpler Anfängerfehler ?!
Danke, Thomas
Wo/was fehlt da noch, dass es geht (bei anderen Fenstern habe ich das Problem nicht)?
Ich habe mir schon einen Wolf getraced, kann aber nicht erkennen, warum es in einem Fall geht und in einem anderen nicht. Bestimmt ein ganz simpler Anfängerfehler ?!
Danke, Thomas
Java:
at org.eclipse.ui.internal.Perspective.saveState(Perspective.java:1631)
at org.eclipse.ui.internal.Perspective.saveDescAs(Perspective.java:1582)
at org.eclipse.ui.internal.WorkbenchPage.savePerspectiveAs(WorkbenchPage.java:3339)
at com.tsystems.favbg.ui.core.action.SavePerspectiveAction.saveNonSingleton(SavePerspectiveAction.java:118)
at com.tsystems.favbg.ui.core.action.SavePerspectiveAction.run(SavePerspectiveAction.java:67)
at com.tsystems.favbg.ui.core.action.SavePerspectiveAction.run(SavePerspectiveAction.java:48)
at com.tsystems.favbg.ui.core.workbenchWindowAdvisor.BaseWorkbenchWindowAdvisor.preWindowShellClose(BaseWorkbenchWindowAdvisor.java:48)
at de.uvdms.ui.orgdb.benutzerverwaltung.BenutzerverwaltungWorkbenchWindowAdvisor.preWindowShellClose(BenutzerverwaltungWorkbenchWindowAdvisor.java:145)
at org.eclipse.ui.internal.WorkbenchWindow.fireWindowShellClosing(WorkbenchWindow.java:1241)
at org.eclipse.ui.internal.WorkbenchWindow.canHandleShellCloseEvent(WorkbenchWindow.java:804)
at org.eclipse.jface.window.Window$3.shellClosed(Window.java:686)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:92)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Decorations.closeWidget(Decorations.java:307)
at org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.java:1643)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3789)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1576)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2366)
at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:477)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3877)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1576)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2366)
at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:477)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3877)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1576)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2371)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3420)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.tsystems.favbg.ui.Application.start(Application.java:59)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
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:386)
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:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Zuletzt bearbeitet von einem Moderator: