mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-19 13:54:23 +01:00
Issue 950: NPE Compiler.java:407
This commit is contained in:
parent
a363686a31
commit
958c835ef0
@ -401,10 +401,12 @@ public class Compiler implements MessageConsumer {
|
||||
boolean compiling = true;
|
||||
while (compiling) {
|
||||
try {
|
||||
if (in.thread != null)
|
||||
in.thread.join();
|
||||
if (err.thread != null)
|
||||
err.thread.join();
|
||||
Thread t = in.thread;
|
||||
if (t != null)
|
||||
t.join();
|
||||
t = err.thread;
|
||||
if (t != null)
|
||||
t.join();
|
||||
result = process.waitFor();
|
||||
//System.out.println("result is " + result);
|
||||
compiling = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user