Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] SWT_AWT on Mac, first impressions

Scott,

We also have the following issue with creating a browser with XULRunner:

CWindow's _nativeShowModal: encountered error : 2009-10-04
19:28:18.319 java[785:80f] org.eclipse.swt.SWTException: Failed to
execute runnable (java.lang.NullPointerException)
       at org.eclipse.swt.SWT.error(SWT.java:3956)
       at org.eclipse.swt.SWT.error(SWT.java:3871)
       at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:137)
       at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3467)
       at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3164)
       at test.SimpleSWTMozillaBrowser.main(SimpleSWTMozillaBrowser.java:64)
Caused by: java.lang.NullPointerException
       at org.eclipse.swt.browser.MozillaDelegate.createBaseWindow(MozillaDelegate.java:88)
       at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:1363)
       at org.eclipse.swt.browser.Browser.<init>(Browser.java:120)
       at test.SimpleSWTMozillaBrowser$1$1.run(SimpleSWTMozillaBrowser.java:31)
       at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
       at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
       ... 3 more

MozillaDelegate :
87      NSMenu mainMenu = application.mainMenu ();
88      mainMenu.retain (); <- mainMenu == null!!
89      int rc = baseWindow.Create ();


Do you have any idea if it is a setup issue, or if this is an SWT bug?
If it is the latter, please let us know and we will open it in
BugZilla.

-Christopher


Back to the top