Skip to content
Permalink
Browse files

being more defensive, in seeing JENKINS-7809 and the following stack …

…trace:

java.lang.NegativeArraySizeException
	at hudson.remoting.ProxyOutputStream$Chunk.<init>(ProxyOutputStream.java:175)
	at hudson.remoting.ProxyOutputStream._write(ProxyOutputStream.java:123)
	at hudson.remoting.ProxyOutputStream.write(ProxyOutputStream.java:103)
  • Loading branch information
kohsuke committed Feb 14, 2011
1 parent 63c356b commit 7b40e2e091db073df18a27d27e2019a290fa3bee
Showing with 1 addition and 1 deletion.
  1. +1 −1 remoting/src/main/java/hudson/remoting/PipeWindow.java
@@ -139,7 +139,7 @@ public int get() throws InterruptedException {
if (available>0)
return available;

while (available==0) {
while (available<=0) {
wait();
}
}

0 comments on commit 7b40e2e

Please sign in to comment.