| Summary: | NPE in ModiscoURIHandler#canHandle | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 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: | Ed.Merks, fabien.giquel, gdupe, hugo.bruneliere, Kenn.Hussey, modisco.web-inbox | ||||||||
| Version: | 0.8.0 | Flags: | nicolas.bros:
helios+
Ed.Merks: pmc_approved+ Kenn.Hussey: pmc_approved+ gdupe: review+ fabien.giquel: review+ |
||||||||
| Target Milestone: | 0.8.1 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows 7 | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
Created attachment 178722 [details] project to reproduce the error To reproduce: - Import project Bug325085 from the attached zip - Do "Navigate > Open EPackage", and select the genmodel metamodel for example - Apply the "My" facet - Expand an EClass, and click on the "/firstChar" attribute You should get the NPE. Created attachment 178723 [details]
patch
Here is a patch that trivially fixes the NPE.
The problem is due to the fact that I set just "my" as the nsURI of the FacetSet in my example. So, the nsURI doesn't have a scheme. I think this patch can be applied for RC4, since it's trivial and the NPE can easily happen if the user wasn't careful to set a correctly formed nsURI on his FacetSets. I applied the patch to branch 0.8 in revision 3023. The patch has been successfully applied. |
Created attachment 178721 [details] stacktrace See attached stacktrace.