Skip to content

Commit 958c835

Browse files
committed
Issue 950: NPE Compiler.java:407
1 parent a363686 commit 958c835

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/src/processing/app/debug/Compiler.java

+6-4
Original file line numberDiff line numberDiff line change
@@ -401,10 +401,12 @@ private void execAsynchronously(List commandList) throws RunnerException {
401401
boolean compiling = true;
402402
while (compiling) {
403403
try {
404-
if (in.thread != null)
405-
in.thread.join();
406-
if (err.thread != null)
407-
err.thread.join();
404+
Thread t = in.thread;
405+
if (t != null)
406+
t.join();
407+
t = err.thread;
408+
if (t != null)
409+
t.join();
408410
result = process.waitFor();
409411
//System.out.println("result is " + result);
410412
compiling = false;

0 commit comments

Comments
 (0)