| Summary: | NPE during validating an erroneous jsp file | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Patric Rufflar <patric> | ||||
| Component: | jst.jsp | Assignee: | Nick Sandonato <nsand.dev> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Nick Sandonato <nsand.dev> | ||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | thatnitind | ||||
| Version: | unspecified | Flags: | thatnitind:
review+
|
||||
| Target Milestone: | 3.2.4 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Patric Rufflar
Created attachment 191853 [details]
patch
The problem seems to have arisen from the fact that the actual translator reference changes if a document goes from empty to non-empty and vice versa. For a translator with an empty document, the structured document reference was null, so re-translation was failing and throwing an NPE while trying to iterate through the structured document regions.
Also, it seems like the previous fix would always create a new JSPTranslationExtension, which we were intending to avoid.
This fix corrects both issues.
Also wanted to point out that Bug 327934 likely caused this. Code released |