diff options
author | Paul Phillips <paulp@improving.org> | 2010-01-11 17:16:56 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-01-11 17:16:56 +0000 |
commit | c6c3b44b0c4e019b9e65a88300c89f7e617ad56c (patch) | |
tree | 206a5fbb4e013fe0bc1c250d0f6888759605d0b0 /src | |
parent | 91e88b3f7d4a2765c11bf4ac5495eb7c329bc18e (diff) | |
download | scala-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.scala | 4 |
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 |