Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348011 - NPE when clearing text
Summary: NPE when clearing text
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ling Hao CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-01 16:23 EDT by Ling Hao CLA
Modified: 2021-11-19 09:21 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.