Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345369 - NPE rather than ISE serilaising empty resource
Summary: NPE rather than ISE serilaising empty resource
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Windows Vista
: P3 minor (vote)
Target Milestone: RC1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-11 03:48 EDT by Ed Willink CLA
Modified: 2017-09-19 17:29 EDT (History)
1 user (show)

See Also:
sven.efftinge: indigo+


Attachments

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