summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorburaq <buraq@epfl.ch>2004-08-20 13:39:25 +0000
committerburaq <buraq@epfl.ch>2004-08-20 13:39:25 +0000
commitba35c9553c4cee8e1142d6eb7b561fdef65447a2 (patch)
treef96a18be498ae7b31f5b03b10c8e334887aa9fbe
parent6cc9d353dac8826af82e4eae3100933e44d23efa (diff)
downloadscala-ba35c9553c4cee8e1142d6eb7b561fdef65447a2.tar.gz
scala-ba35c9553c4cee8e1142d6eb7b561fdef65447a2.tar.bz2
scala-ba35c9553c4cee8e1142d6eb7b561fdef65447a2.zip
added "hasNext" check (oops)
-rw-r--r--sources/scala/xml/parsing/ConstructingParser.scala2
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 */