Skip to content

Commit

Permalink
minor stream verification
Browse files Browse the repository at this point in the history
  • Loading branch information
rene-ye committed Feb 22, 2018
1 parent f421d4c commit 91bf4d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public byte[] getBytes(long pos,
*/
public long length() throws SQLException {
checkClosed();
if (value == null)
if (value == null && activeStreams.get(0) instanceof PLPInputStream)
return (long)((PLPInputStream)activeStreams.get(0)).payloadLength;
getBytesFromStream();
return value.length;
Expand Down

0 comments on commit 91bf4d3

Please sign in to comment.