Fix Bug 524931 - Setting the value of an uninitialized child of an E4X object by using square bracket syntax causes Null Pointer Exception
git-svn-id: svn://10.0.0.236/trunk@259290 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
83968b66b4
commit
3f6dfb4594
@ -250,6 +250,9 @@ class XMLList extends XMLObjectImpl implements Function {
|
||||
// There may well be a better way to do this
|
||||
// TODO Find a way to refactor this whole method and simplify it
|
||||
xmlValue = item(index);
|
||||
if (xmlValue == null) {
|
||||
xmlValue = item(0).copy();
|
||||
}
|
||||
((XML)xmlValue).setChildren(value);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user