mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Merge pull request #5384 from hazmatsuitor/master
fix NPE when closing sketch window on Mac (#5214)
This commit is contained in:
@@ -3703,8 +3703,7 @@ public class PApplet implements PConstants {
|
||||
if (platform == MACOSX) {
|
||||
try {
|
||||
final String td = "processing.core.ThinkDifferent";
|
||||
final Class<?> thinkDifferent =
|
||||
Thread.currentThread().getContextClassLoader().loadClass(td);
|
||||
final Class<?> thinkDifferent = getClass().getClassLoader().loadClass(td);
|
||||
thinkDifferent.getMethod("cleanup").invoke(null);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
||||
Reference in New Issue
Block a user