| Summary: | NPE viewing jaxb project properties when schema has a null namespace | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Karen Butzke <karenfbutzke> | ||||||||||
| Component: | JAXB | Assignee: | Karen Butzke <karenfbutzke> | ||||||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | jolene.moffitt, neil.hauge | ||||||||||
| Version: | 3.1 | Flags: | neil.hauge:
review+
|
||||||||||
| Target Milestone: | 3.0.2 | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Windows XP | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
This isn't because I deleted the schemas, it's because they have null namespaces Created attachment 206797 [details]
example schema
Ok, here is a schema that causes the issue. Create a JAXB project and associate it with 2 local schemas in the project properties. Now replace the contents of both of those schemas with this attached schema. Reopen the project properties and the NPE happens
Created attachment 206800 [details]
example project
attaching the offending project
checked in to HEAD for 3.1RC1, seems like a good 3.0.2 candidate bug Created attachment 206813 [details]
proposed patch against 3.0 maintenance
fix checked in Verified in Build M-3.3.2-20111117045640 Verified no errors appear if you have two schemas and both with null for the namespace. See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.0.2 |
Created attachment 206735 [details] stack trace I deleted some schemas that were associated with my JAXB project after generating classes from them. There are validation errors that the schema cannot be resolved. Opened the Project properties and try to view the 'JAXB'-> 'Schemas' page to remove the old schemas. I get the attached NPE and the page does not draw correctly