From 3430e0abeee2e934f167edd38126450f27c7b348 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 16 Jan 2023 02:21:19 +0100 Subject: 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 --- src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/newt/classes') 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; -- cgit v1.2.3