Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346869 - [xtext1] NPE in DiagnosticImpl.toString()
Summary: [xtext1] NPE in DiagnosticImpl.toString()
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-23 09:16 EDT by Niko Stotz CLA
Modified: 2017-10-31 11:19 EDT (History)
0 users

See Also:


Attachments

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