Skip to content
Browse files

Fixed JKeyedBits decode null pointer exception

  • Loading branch information...
1 parent e612139 commit e9e2cc35678994185a4c725354dfd5d459c1b99c @unixpickle committed Aug 28, 2012
View
4 JKeyedBits/src/com/aqnichol/keyedbits/decode/FileDecodeStream.java
@@ -25,7 +25,9 @@ public InputStream getInputStream () {
} catch (IOException e) {
throw new DecodeStreamReadError("Failed to read from input stream.", e);
}
- if (read < 0) return null;
+ if (read < 0) {
+ throw new DecodeStreamReadError("Failed to read from input stream.", null);
+ }
hasBytes += read;
}
return bytes;
View
BIN ....xcodeproj/project.xcworkspace/xcuserdata/alex.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.

0 comments on commit e9e2cc3

Please sign in to comment.
Something went wrong with that request. Please try again.