diff options
author | Sven Gothel <[email protected]> | 2023-01-16 02:21:19 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-01-16 02:21:19 +0100 |
commit | 3430e0abeee2e934f167edd38126450f27c7b348 (patch) | |
tree | 1728ef636f47ec8d51dd141ca0a6a158acdf0dea /src | |
parent | c8da0cb0b636c9f06a59c1f7ba9521b1d5f4ee65 (diff) |
NewtCanvasSWT: Remove certain DEBUG output causing an exception
Cannot invoke "com.jogamp.newt.Window.getDelegatedWindow()" because the return value of "com.jogamp.newt.swt.NewtCanvasSWT.access$200(com.jogamp.newt.swt.NewtCanvasSWT)" is null
Diffstat (limited to 'src')
-rw-r--r-- | src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java b/src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java index 63286f5de..fe1d5a9e6 100644 --- a/src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java +++ b/src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java @@ -273,7 +273,8 @@ public class NewtCanvasSWT extends Canvas implements NativeWindowHolder, WindowC case SWT.Resize: if( DEBUG ) { System.err.println(shortName()+".Event.RESIZE, "+event); - System.err.println(shortName()+".Event.RESIZE, "+newtChild.getDelegatedWindow().toSimpleString()); + // Cannot invoke "com.jogamp.newt.Window.getDelegatedWindow()" because the return value of "com.jogamp.newt.swt.NewtCanvasSWT.access$200(com.jogamp.newt.swt.NewtCanvasSWT)" is null + // System.err.println(shortName()+".Event.RESIZE, "+newtChild.getDelegatedWindow().toSimpleString()); } if( isNativeValid() ) { // ensure this is being called if already valid @@ -285,7 +286,8 @@ public class NewtCanvasSWT extends Canvas implements NativeWindowHolder, WindowC case SWT.Dispose: if( DEBUG ) { System.err.println(shortName()+".Event.DISPOSE, "+event); - System.err.println(shortName()+".Event.DISPOSE, "+newtChild.getDelegatedWindow().toSimpleString()); + // Cannot invoke "com.jogamp.newt.Window.getDelegatedWindow()" because the return value of "com.jogamp.newt.swt.NewtCanvasSWT.access$200(com.jogamp.newt.swt.NewtCanvasSWT)" is null + // System.err.println(shortName()+".Event.DISPOSE, "+newtChild.getDelegatedWindow().toSimpleString()); } NewtCanvasSWT.this.dispose(); break; |