summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-01-11 17:16:56 +0000
committerPaul Phillips <paulp@improving.org>2010-01-11 17:16:56 +0000
commitc6c3b44b0c4e019b9e65a88300c89f7e617ad56c (patch)
tree206a5fbb4e013fe0bc1c250d0f6888759605d0b0 /src
parent91e88b3f7d4a2765c11bf4ac5495eb7c329bc18e (diff)
downloadscala-c6c3b44b0c4e019b9e65a88300c89f7e617ad56c.tar.gz
scala-c6c3b44b0c4e019b9e65a88300c89f7e617ad56c.tar.bz2
scala-c6c3b44b0c4e019b9e65a88300c89f7e617ad56c.zip
Fix and test case for #2364, which regressed wi...
Fix and test case for #2364, which regressed with the fix to #2721.
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/xml/parsing/FactoryAdapter.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library/scala/xml/parsing/FactoryAdapter.scala b/src/library/scala/xml/parsing/FactoryAdapter.scala
index 2385f645b5..a83f9677a1 100644
--- a/src/library/scala/xml/parsing/FactoryAdapter.scala
+++ b/src/library/scala/xml/parsing/FactoryAdapter.scala
@@ -135,7 +135,9 @@ abstract class FactoryAdapter extends DefaultHandler with factory.XMLLoader[Node
hStack push null
var m: MetaData = Null
- var scpe: NamespaceBinding = scopeStack.top
+ var scpe: NamespaceBinding =
+ if (scopeStack.isEmpty) TopScope
+ else scopeStack.top
for (i <- 0 until attributes.getLength()) {
val qname = attributes getQName i