World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 09-02-2009, 04:29 PM   #1
jgoldberg
Junior Member
 
Join Date: May 2009
Posts: 4
jgoldberg is on a distinguished road
Default NullPointerException when closing WW applet

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
jgoldberg is offline   Reply With Quote
Old 01-29-2010, 04:35 AM   #2
tag
WWJ Technical Manager
 
Join Date: May 2007
Location: Seattle
Posts: 1,027
tag is on a distinguished road
Default

Thanks for reporting it. The fix will be in the 1/28 release. The repaired class is attached in case you need it now.
Attached Files
File Type: zip DashboardController.java.zip (1.0 KB, 49 views)
tag is offline   Reply With Quote
Old 01-29-2010, 04:34 PM   #3
jgoldberg
Junior Member
 
Join Date: May 2009
Posts: 4
jgoldberg is on a distinguished road
Default

Thanks!
jgoldberg is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 03:48 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.