| Summary: | NPE in browser.custom.editor.editors.WorkspaceChangeListener | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] MoDisco | Reporter: | Nicolas Bros <nicolas.bros> | ||||||
| Component: | Infrastructure | Assignee: | Nicolas Bros <nicolas.bros> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | gdupe, hugo.bruneliere, modisco.web-inbox | ||||||
| Version: | 0.8.0 | Flags: | nicolas.bros:
helios+
hugo.bruneliere: review+ |
||||||
| Target Milestone: | 0.8.0 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
This happens when deleting a project from the workspace while a workspace customization is open in the uiCustom editor. Created attachment 168717 [details]
patch
Apparently, getLocation() returns null for a workspace file that is deleted, and this is what caused the NPE.
This patch fixes the problem by comparing workspace-relative paths instead of absolute locations.
Hi Nicolas, You can go ahead with this patch. Regards, Hugo Thanks! I have committed it to branch 0_8_0. The patch has been successfully applied. |
Created attachment 168715 [details] stacktrace see attached stacktrace