Community
Participate
Working Groups
In some situations, e.g. when eclipse is restarted with open editors to no longer existing files, the XtextDocument calls IUnitOfWorks with a 'null' state. Instead of dealing with that condition in all clients, I'd rather not call the IUnitOfWork when there is no resource.
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.