commit | f7c8ad19e01d66e30cfd30199fe3e4e9f5c0a81b | [log] [tgz] |
---|---|---|
author | nsandonato <nsandonato> | Wed Jul 08 17:25:46 2009 +0000 |
committer | nsandonato <nsandonato> | Wed Jul 08 17:25:46 2009 +0000 |
tree | 3ebb64b7e8748bf6b09c3dd168b2757438941213 | |
parent | 7624819a07882fce3aad2692cef71cbc3d9181f7 [diff] |
[282684] NPE in org.eclipse.wst.xml.core.internal.document.AttrImpl.setNodeValue if nodeValue is null
diff --git a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/document/AttrImpl.java b/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/document/AttrImpl.java index 41587d4..4ae3768 100644 --- a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/document/AttrImpl.java +++ b/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/document/AttrImpl.java
@@ -758,7 +758,7 @@ if (this.ownerElement != null && !this.ownerElement.isDataEditable()) { throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, new String()); } - this.fValueSource = source.toCharArray(); + this.fValueSource = (source != null) ? source.toCharArray() : null; notifyValueChanged(); }