Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348011

Summary: NPE when clearing text
Product: z_Archived Reporter: Ling Hao <ling.hao>
Component: SapphireAssignee: Ling Hao <ling.hao>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: konstantin, ram.venkataswamy
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Ling Hao CLA 2011-06-01 16:23:06 EDT
NPE when calling element.setText(null)

java.lang.NullPointerException
	at org.eclipse.sapphire.modeling.xml.XmlElement.setText(XmlElement.java:279)
	at oracle.eclipse.tools.coherence.descriptors.internal.SocketProviderOptionsCustomBinding.write(SocketProviderOptionsCustomBinding.java:85)
Comment 1 Ling Hao CLA 2011-06-01 16:55:15 EDT
Checked in fix in XmlElement - instead of removing child element in a for loop, add to a list and remove later. Please code review.
Comment 2 Ram Venkataswamy CLA 2011-06-03 14:05:46 EDT
verified with build 372
Comment 3 Konstantin Komissarchik CLA 2011-06-03 16:32:37 EDT
The fix looks fine. Closing.