Skip to content
This repository
Browse code

Fixed JKeyedBits decode null pointer exception

  • Loading branch information...
commit e9e2cc35678994185a4c725354dfd5d459c1b99c 1 parent e612139
Alex Nichol authored
4 JKeyedBits/src/com/aqnichol/keyedbits/decode/FileDecodeStream.java
@@ -25,7 +25,9 @@ public InputStream getInputStream () {
25 25 } catch (IOException e) {
26 26 throw new DecodeStreamReadError("Failed to read from input stream.", e);
27 27 }
28   - if (read < 0) return null;
  28 + if (read < 0) {
  29 + throw new DecodeStreamReadError("Failed to read from input stream.", null);
  30 + }
29 31 hasBytes += read;
30 32 }
31 33 return bytes;
BIN  KeyedBits.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.