Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361702 - [xtend] NullPointerException in RichString
Summary: [xtend] NullPointerException in RichString
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.1.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: SR2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-21 14:54 EDT by Benjamin Schwertfeger CLA
Modified: 2017-09-19 17:04 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: indigo+


Attachments

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