![]() |
|
|||||||
| Development Help Help for building applications or diagnosing problems with WWJ |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: May 2009
Posts: 4
![]() |
Hello!
When running the 9254 2009-03-06 Daily WW build as an applet, I get a NullPointerException when closing WW. The stack trace is: Sep 2, 2009 11:21:49 AM gov.nasa.worldwind.WorldWindowGLAutoDraw able display SEVERE: Exception while attempting to shut down WorldWindow java.lang.NullPointerException at gov.nasa.worldwind.util.dashboard.Dashbo ardController.dispose(DashboardControlle r.java:38) at gov.nasa.worldwind.WorldWindowGLAutoDraw able.doShutdown(WorldWindowGLAutoDrawabl e.java:106) at gov.nasa.worldwind.WorldWindowGLAutoDraw able.display(WorldWindowGLAutoDrawable.j ava:199) at com.sun.opengl.impl.GLDrawableHelper.dis play(GLDrawableHelper.java:78) at javax.media.opengl.GLCanvas$DisplayActio n.run(GLCanvas.java:435) at com.sun.opengl.impl.GLDrawableHelper.inv okeGL(GLDrawableHelper.java:194) at javax.media.opengl.GLCanvas$DisplayOnEve ntDispatchThreadAction.run(GLCanvas.java :452) at java.awt.event.InvocationEvent.dispatch( Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknow n Source) at java.awt.EventDispatchThread.pumpOneEven tForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsF orFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsF orHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents( Unknown Source) at java.awt.EventDispatchThread.pumpEvents( Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) The offending line of code is "this.dialog.dispose();" in the dispose method in DashboardController.java. It seems that this.dialog is null when dispose is called. I went ahead and wrapped the line in if(this.dialog != null). This seemed to fix the problem. Is this an actual WW bug, or is it likely that I'm doing something wrong somewhere else? Cheers, Jeremy |
|
|
|
|
|
#2 |
|
WWJ Technical Manager
Join Date: May 2007
Location: Seattle
Posts: 1,027
![]() |
Thanks for reporting it. The fix will be in the 1/28 release. The repaired class is attached in case you need it now.
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2009
Posts: 4
![]() |
Thanks!
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| WWJ Applet Recommended Setup and Guidelines | patmurris | Development Help | 5 | 08-22-2011 10:18 AM |
| Responding to Click events in applet | heidi67 | Development Help | 1 | 02-04-2009 01:45 PM |
| New Java Plugin applet experiment | vash | Development Help | 5 | 01-20-2009 03:37 AM |
| EMF and Applet Java | gilou31 | Development Help | 2 | 09-10-2008 07:32 AM |
| need help with worldwind applet | blackscholes | Development Help | 7 | 11-12-2007 08:45 PM |