diff options
author | buraq <buraq@epfl.ch> | 2004-08-20 13:39:25 +0000 |
---|---|---|
committer | buraq <buraq@epfl.ch> | 2004-08-20 13:39:25 +0000 |
commit | ba35c9553c4cee8e1142d6eb7b561fdef65447a2 (patch) | |
tree | f96a18be498ae7b31f5b03b10c8e334887aa9fbe /sources | |
parent | 6cc9d353dac8826af82e4eae3100933e44d23efa (diff) | |
download | scala-ba35c9553c4cee8e1142d6eb7b561fdef65447a2.tar.gz scala-ba35c9553c4cee8e1142d6eb7b561fdef65447a2.tar.bz2 scala-ba35c9553c4cee8e1142d6eb7b561fdef65447a2.zip |
added "hasNext" check (oops)
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scala/xml/parsing/ConstructingParser.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scala/xml/parsing/ConstructingParser.scala b/sources/scala/xml/parsing/ConstructingParser.scala index 04bcba3c9d..99b20b0225 100644 --- a/sources/scala/xml/parsing/ConstructingParser.scala +++ b/sources/scala/xml/parsing/ConstructingParser.scala @@ -10,7 +10,7 @@ object ConstructingParser { val p = new ConstructingParser() { val input = inp; override val handle = theHandle; - def nextch = { ch = input.next; pos = input.pos; } + def nextch = if(input.hasNext) { ch = input.next; pos = input.pos; } override val preserveWS = true; /** report a syntax error */ |