diff options
author | Sven Gothel <[email protected]> | 2014-07-08 10:47:41 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-07-08 10:47:41 +0200 |
commit | 96d530e7127c89db9991080e6268c6e8430d0619 (patch) | |
tree | efd8da06fea9da34f03c232d8c23670e41282d11 /src/newt/classes | |
parent | db25b1ba6575210741e485838d0882a1590125e6 (diff) |
Findbugs.not-written.null: Fix referencing non-written fields (never written or due branching)
- AWT TextRenderer: Add throw new InternalError("fontRenderContext never initialized!"); FIXME!
- GLContextImpl.hasFBOImpl(): Fix serious NPE issue if extCache is null
- GLDrawableFactoryImpl.createOffscreenDrawableImpl(..):
- Fix NPE issue w/ null drawable
- Fix resetting GammaRamp by ensuring originalGammaRamp will be set at 1st setGammaRamp(..)
- AndroidGLMediaPlayerAPI14: Fix NPE: Use already resolved local referenced
- EGLDrawableFactory: Fix NPE: Only operate on non null surface!
- ALAudioSink.dequeueBuffer(..): Only resolve releasedBuffer elements if not null
-
Diffstat (limited to 'src/newt/classes')
-rw-r--r-- | src/newt/classes/jogamp/newt/swt/SWTEDTUtil.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/newt/classes/jogamp/newt/swt/SWTEDTUtil.java b/src/newt/classes/jogamp/newt/swt/SWTEDTUtil.java index 4d5d9724a..af5590be6 100644 --- a/src/newt/classes/jogamp/newt/swt/SWTEDTUtil.java +++ b/src/newt/classes/jogamp/newt/swt/SWTEDTUtil.java @@ -83,9 +83,18 @@ public class SWTEDTUtil implements EDTUtil { synchronized(edtLock) { if( nedt.isRunning() ) { final Thread curT = Thread.currentThread(); - final Thread swtT = !swtDisposed ? swtDisplay.getThread() : null; + final String swtTName; + final Thread swtT; + if( !swtDisposed ) { + swtT = swtDisplay.getThread(); + swtTName = swtT.getName(); + } else { + swtT = null; + swtTName = null; + } final boolean onSWTEDT = swtT == curT; - throw new IllegalStateException("EDT still running and not subject to stop. Curr "+curT.getName()+", NEDT "+nedt.getName()+", isRunning "+nedt.isRunning+", shouldStop "+nedt.shouldStop+", SWT-EDT "+swtT.getName()+", on SWT-EDT "+onSWTEDT); + throw new IllegalStateException("EDT still running and not subject to stop. Curr "+curT.getName()+ + ", NEDT "+nedt.getName()+", isRunning "+nedt.isRunning+", shouldStop "+nedt.shouldStop+", SWT-EDT "+swtTName+", on SWT-EDT "+onSWTEDT); } if(DEBUG) { System.err.println(Thread.currentThread()+": SWT-EDT reset - edt: "+nedt+", swtDisposed (skipping) "+swtDisposed); |