HI,
when I open a file dialog from my application and press the cancel button located within the file dialog, it just closes the file dialog as expected, if I repeat the process, it closes the entire application, that would be my main shell which has my menubar, as well as a number of other things and the application window which holds the button the activates the file dialog.
this is the error log that it gives
ImportWindow is the application window
AppMainShell is the class the creates the main Shell
I can include code, but wasnt sure what to put here.
I have included an image to give the basic idea of what it looks like
pic.jpg
#
java.lang.NullPointerException
at app.GUIConstructionModule.ImportWindow$4.widgetSelected(ImportWindow.java:324)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at app.GUIConstructionModule.ImportWindow.openWindow(ImportWindow.java:74)
at app.GUIConstructionModule.ImportWindow.<init>(ImportWindow.java:41)
at app.GUIConstructionModule.AppMenu$2.widgetSelected(AppMenu.java:181)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at app.GUIConstructionModule.AppMainShell.setupWindow(AppMainShell.java:30)
at app.GUIConstructionModule.AppMainShell.<init>(AppMainShell.java:16)
at app.ConstructApp.<init>(ConstructApp.java:24)
at app.ConstructApp.main(ConstructApp.java:36)
java.lang.NullPointerException
at app.GUIConstructionModule.ImportWindow$6.widgetSelected(ImportWindow.java:352)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at app.GUIConstructionModule.AppMainShell.setupWindow(AppMainShell.java:30)
at app.GUIConstructionModule.AppMainShell.<init>(AppMainShell.java:16)
at app.ConstructApp.<init>(ConstructApp.java:24)
at app.ConstructApp.main(ConstructApp.java:36)
I appreciate any help