If an input stream has been read from, and left some data in the internal buffer, then a subsequent `read`, with no amount of bytes to be read having been specified, will raise an error when comparing to `nil`. This fix checks that the number of bytes specified in the `read` is not `nil` before comparing with the size of the internal buffer. Fixes #461. |
||
---|---|---|
.. | ||
abstract_input_stream.rb | ||
abstract_output_stream.rb |