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

Bug 339640

Summary: XtextResourceSetProvider no longer permits a null project
Product: [Modeling] TMF Reporter: Ed Willink <ed>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: clay, dzonekl, sebastian.zarnekow
Version: 2.0.0Flags: sebastian.zarnekow: indigo+
Target Milestone: M7   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Bug Depends on:    
Bug Blocks: 303977    

Description Ed Willink CLA 2011-03-11 01:38:44 EST
2.0M5 almost M6.

XtextResourceSetProvider.get(IProject) used to tolerate a null project for non-project contexts such as views as used by the XTFO EmbeddedXtextEditor.

This now NPEs. The following lines

IJavaProject javaProject = JavaCore.create(project);
set.getURIConverter().getURIMap().putAll(computePlatformURIMap(javaProject));
if (javaProject!=null && javaProject.exists()) {

demonstrate that a null javaProject was once permitted.
Comment 1 Michael Clay CLA 2011-03-15 18:22:07 EDT
which also affects return resourceSetProvider.get(null); in ResourceForIEditorInputFactory
Comment 2 Sebastian Zarnekow CLA 2011-03-20 14:39:32 EDT
Pushed to master.
Comment 3 Sebastian Zarnekow CLA 2011-05-01 03:48:49 EDT
*** Bug 344388 has been marked as a duplicate of this bug. ***
Comment 4 Karsten Thoms CLA 2017-09-19 17:38:56 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 5 Karsten Thoms CLA 2017-09-19 17:50:08 EDT
Closing all bugs that were set to RESOLVED before Neon.0