Name: rm29839 Date: 02/27/98
This is a code from this method:
...
if (len <= 0) { return 0; }
int c = read();
if (c == -1) { return -1;}
b[off] = (byte)c;
...
You don't check if b equals to null at this point. But according to your javadoc to this method shoudl to do it.
-regards.
(Review ID: 25753)
======================================================================
- duplicates
-
JDK-4008293 java.io.XXXXInputStream.read(b,off,len) methods work wrong with b
-
- Closed
-