diff options
author | Tomas Janousek <tomi@nomi.cz> | 2015-09-19 01:09:24 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@gmail.com> | 2015-09-21 11:53:49 +0200 |
commit | 8cca2bcae8d1393cb7de8f777ace6a918acabb28 (patch) | |
tree | 53400d136c1b7aa21a13f302e6648439a24b8023 /docs/svn-to-sha1-map.txt | |
parent | 0f72dd37f85bbcaa07cfb325685dc019e6bc1c26 (diff) | |
download | scala-8cca2bcae8d1393cb7de8f777ace6a918acabb28.tar.gz scala-8cca2bcae8d1393cb7de8f777ace6a918acabb28.tar.bz2 scala-8cca2bcae8d1393cb7de8f777ace6a918acabb28.zip |
Fix NPE in PagedSeq.slice at end of seq
See https://github.com/scala/scala-parser-combinators/issues/70
Basically the same thing as SI-6615, including the fact everything
works okay if the PagedSeq is printed before calling slice.
It might seem strange that this allows taking slices that start beyond
the end, but
- this was possible anyway if one forced the entire sequence, and
- it is reasonable to be able to take a slice at the very end (not
beyond it) and get an empty sequence, which is exactly what
StreamReader in scala-parser-combinators does and gets an NPE.
Diffstat (limited to 'docs/svn-to-sha1-map.txt')
0 files changed, 0 insertions, 0 deletions