File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -547,6 +547,11 @@ public void start() {
547547 @ Override
548548 public void uncaughtException (final Thread t , final Throwable e ) {
549549 terminalException = toSketchException (e );
550+ try {
551+ handleMethods ("dispose" );
552+ } catch (final Exception noop ) {
553+ // give up
554+ }
550555 finishedLatch .countDown ();
551556 }
552557 });
@@ -631,13 +636,10 @@ public void componentMoved(final ComponentEvent e) {
631636 static private void macosxFullScreenToggle (final Window window ) {
632637 try {
633638 final Class <?> appClass = Class .forName ("com.apple.eawt.Application" );
634-
635639 final Method getAppMethod = appClass .getMethod ("getApplication" );
636- final Object app = getAppMethod .invoke (null , new Object [0 ]);
637-
640+ final Object app = getAppMethod .invoke (null );
638641 final Method requestMethod = appClass .getMethod ("requestToggleFullScreen" , Window .class );
639642 requestMethod .invoke (app , window );
640-
641643 } catch (final ClassNotFoundException cnfe ) {
642644 // ignored
643645 } catch (final Exception e ) {
You can’t perform that action at this time.
0 commit comments