diff options
author | Tiark Rompf <tiark.rompf@epfl.ch> | 2009-10-10 08:49:41 +0000 |
---|---|---|
committer | Tiark Rompf <tiark.rompf@epfl.ch> | 2009-10-10 08:49:41 +0000 |
commit | 59e650731564d9e9c69e2e225bb711457c613f72 (patch) | |
tree | b44e59344228f317a77bd66d4f1259a7f4e66196 /src | |
parent | 50184e58479d343942d5981f7b892e4cd401a787 (diff) | |
download | scala-59e650731564d9e9c69e2e225bb711457c613f72.tar.gz scala-59e650731564d9e9c69e2e225bb711457c613f72.tar.bz2 scala-59e650731564d9e9c69e2e225bb711457c613f72.zip |
fixed another npe in VectorIterator
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/collection/immutable/Vector.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/collection/immutable/Vector.scala b/src/library/scala/collection/immutable/Vector.scala index e2ccc96430..f81e200d65 100644 --- a/src/library/scala/collection/immutable/Vector.scala +++ b/src/library/scala/collection/immutable/Vector.scala @@ -13,7 +13,7 @@ // Questions: how to call update, appendFront, appendBack? // how to make them available? trait Vector? VectorLike? have another companion object VectorImpl? -// mix in LinearSeq? +// mix in LinearSeq as well? package scala.collection @@ -596,7 +596,7 @@ class VectorImpl[+A](startIndex: Int, endIndex: Int, focus: Int) extends Vector[ val s = new VectorIterator[A](startIndex, endIndex) s.initFrom(this) s.stabilize(focus) - s.gotoPos(startIndex, startIndex ^ focus) + if (s.depth > 1) s.gotoPos(startIndex, startIndex ^ focus) s } |