mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 17:40:48 +01:00
fix error with output siphon
This commit is contained in:
@@ -552,10 +552,12 @@ java.lang.NullPointerException
|
||||
while (Thread.currentThread() == thread) {
|
||||
try {
|
||||
int count = input.read(boofer, 0, boofer.length);
|
||||
if (count == -1) thread = null;
|
||||
//System.out.print("bc" + count + " " + new String(boofer, 0, count));
|
||||
//PApplet.println(boofer);
|
||||
System.out.print(new String(boofer, 0, count));
|
||||
if (count == -1) {
|
||||
thread = null;
|
||||
|
||||
} else {
|
||||
System.out.print(new String(boofer, 0, count));
|
||||
}
|
||||
|
||||
} catch (IOException e) {
|
||||
// this is prolly because the app was quit & the stream broken
|
||||
|
||||
Reference in New Issue
Block a user