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

Bug 361702

Summary: [xtend] NullPointerException in RichString
Product: [Modeling] TMF Reporter: Benjamin Schwertfeger <benjamin.schwertfeger>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: 2.1.0Flags: sebastian.zarnekow: indigo+
Target Milestone: SR2   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Benjamin Schwertfeger CLA 2011-10-21 14:54:43 EDT
If this is the last RichString in the File, the RichString contains one Literal with a null value wich leads to NullPointerException in TextLine:
	def test(){
		''' «"» 
	}
}

Interface of TextLine should define, if completeText == null is defined.
One workaround is to check in RichStringProcessor$Implementation at caseLiteral, if the value is null.
Comment 1 Sebastian Zarnekow CLA 2011-10-24 10:28:27 EDT
Pushed to master. 

Thanks for the reproducable example.
Comment 2 Karsten Thoms CLA 2017-09-19 16:53:34 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:04:24 EDT
Closing all bugs that were set to RESOLVED before Neon.0