Skip to content

Commit 2053ff2

Browse files
committed
possible fix for issue robaho#21, protect against NPE
1 parent 08d56b5 commit 2053ff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/robaho/net/httpserver/NoSyncBufferedInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public NoSyncBufferedInputStream(InputStream in) {
8383
private void fill() throws IOException {
8484
pos = 0;
8585
count = 0;
86-
int n = getInIfOpen().read(buf);
86+
int n = getInIfOpen().read(getBufIfOpen());
8787
if (n > 0)
8888
count = n;
8989
}

0 commit comments

Comments
 (0)