(0003791)
|
koreth
|
01-31-09 17:32
|
|
Patch:
--- a/modules/quercus/src/com/caucho/quercus/lib/simplexml/SimpleXMLElement.java
+++ b/modules/quercus/src/com/caucho/quercus/lib/simplexml/SimpleXMLElement.java
@@ -199,6 +199,9 @@ public class SimpleXMLElement implements Map.Entry<String,Object>
QuercusClass cls,
SimpleXMLElement element)
{
+ if (null == element) {
+ return NullValue.NULL;
+ }
if (! "SimpleXMLElement".equals(cls.getName()))
return new ObjectExtJavaValue(cls, element, cls.getJavaClassDef());
else |
|