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

Bug 346869

Summary: [xtext1] NPE in DiagnosticImpl.toString()
Product: [Modeling] TMF Reporter: Niko Stotz <eclipse>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.0.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Niko Stotz CLA 2011-05-23 09:16:52 EDT
Build Identifier: 20110218-0911

In org.eclipse.xtext.validation.AbstractDeclarativeValidator.DiagnosticImpl.toString(), line 560:

result.append(((EObject) source.eGet(feat)).eClass().getName());

If feat is optional (i. e. its value for source is null), this leads to an NPE.

Reproducible: Always
Comment 1 Sven Efftinge CLA 2012-11-21 05:50:20 EST
has been replaced in the meantime.
Comment 2 Eclipse Webmaster CLA 2017-10-31 11:07:39 EDT
Requested via bug 522520.

-M.
Comment 3 Eclipse Webmaster CLA 2017-10-31 11:19:08 EDT
Requested via bug 522520.

-M.