| Summary: | NPE at content assist with unordered group | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Martin Stockhammer <hurzl> | ||||
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | sebastian.zarnekow | ||||
| Version: | 2.0.0 | Flags: | sebastian.zarnekow:
indigo+
|
||||
| Target Milestone: | SR1 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 197299 [details]
Stacktrace of the NPE
In:
org.eclipse.xtext.ui.editor.contentassist.antlr.AbstractContentAssistParser
LINE 94:
for(AbstractElement consumed: element.getHandledUnorderedGroupElements()) {
The following statement
element.getHandledUnorderedGroupElements()
returns null
Fixed in June 24. Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
Build Identifier: I20110519-1138 A grammar like the following with unordered group yields a NullpointerException after typing STRG-SPACE inside the brackets on: defined timeperiod { } GRAMMAR: Timeperiod: {Timeperiod} 'define' 'timeperiod' '{' (NL+ time+=TimeDef)* ( (NL+ 'timeperiod_name' name=UID (NL+ time+=TimeDef)* ) & (NL+ 'otherelement' alias=UID (NL+ time+=TimeDef)*)? ) NL+ '}'; TimeDef: 'july' day=INT ; NL Terminal ist a newline. NullpointerException: java.lang.NullPointerException at org.eclipse.xtext.ui.editor.contentassist.antlr.AbstractContentAssistParser.getFollowElements(AbstractContentAssistParser.java:94) at Reproducible: Always