| Summary: | NPE when creating a formatting specification | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Zoltan Ujhelyi <zoltan.ujhelyi> | ||||||||
| Component: | IMP | Assignee: | Stan Sutton <suttons> | ||||||||
| Status: | NEW --- | QA Contact: | |||||||||
| Severity: | major | ||||||||||
| Priority: | P3 | ||||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Zoltan Ujhelyi
Created attachment 181051 [details]
A log stating that no wizard page can be created.
The first exception in the error log states that an NPE was thrown during the creation of a wizard page.
Created attachment 181052 [details]
The detailed, IMP-specific exception trace
The exception trace using IMP-specific code. It was submitted as a separate exception in the error log (not a hierarchic trace).
After looking into the mentioned code, I found, that the NPE is thrown at the following line: createDescriptionText(container, fSchema.getDescription()); At that point fSchema is null. After some debugging, I found that fSchema is initialized in the constructor, after looking for an extension point called "formattingSpecification" in the plug-in "org.eclipse.imp.metatooling". The metatooling plug-in does not define any extension points at all, and I did not find any extension point called "formattingSpecification", just an "org.eclipse.imp.formattingSpecification" in the "org.eclipse.imp.formatting" plug-in. Created attachment 181054 [details]
A patch for the 0.1.91 version
A simple modification of the metatooling plug-in (v0.1.91) code to use the correct plug-in ID.
Sorry for the comment spam - but I checked, that the same patch can be used in the trunk version as well (0.2.1). I think, it would be nice to provide a fixed release from the 0.1 series as well as fixing the 0.2 series. |