| Summary: | [editor] XtextDocument should not call IUnitOfWork with null resource | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Jan Koehnlein <jan> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | karsten.thoms |
| Version: | 2.2.1 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | v2.8 | ||
|
Description
Jan Koehnlein
An NPE guard was added with #fb09ed5c5be11955772544226a17ca4e878ab053 on 2015-02-16. Considering as fixed.
internalModify(new IUnitOfWork.Void<XtextResource>() {
@Override
public void process(XtextResource state) throws Exception {
// the resource may already be null if the document was opened for a bogus
// storage / stream - NPE guard here
if (state != null) { ... }
Requested via bug 522520. -M. Requested via bug 522520. -M. |