We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f33a93 commit 7c57ba5Copy full SHA for 7c57ba5
src/gov/nasa/worldwind/awt/WorldWindowGLJPanel.java
@@ -367,7 +367,8 @@ public Object removeKey(String key)
367
public synchronized void addPropertyChangeListener(PropertyChangeListener listener)
368
{
369
super.addPropertyChangeListener(listener);
370
- this.wwd.addPropertyChangeListener(listener);
+ if (wwd != null) // defensive condition for NPE that happens when (for example) setting a swing look/feel
371
+ this.wwd.addPropertyChangeListener(listener);
372
}
373
374
@Override
0 commit comments