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

Bug 345369

Summary: NPE rather than ISE serilaising empty resource
Product: [Modeling] TMF Reporter: Ed Willink <ed>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: sven.efftinge
Version: 2.0.0Flags: sven.efftinge: indigo+
Target Milestone: RC1   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Ed Willink CLA 2011-05-11 03:48:05 EDT
XtextResource.doSave accesses the contents field directly and so generates an NPE if the resource is really empty. Should invoke getContents() to get the consistent ISE.
Comment 1 Sven Efftinge CLA 2011-05-11 03:52:50 EDT
pushed to master
Comment 2 Karsten Thoms CLA 2017-09-19 17:17:59 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:29:19 EDT
Closing all bugs that were set to RESOLVED before Neon.0