| Summary: | NullPointerException during validation when dep.index filesize is 0 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Common Tools | Reporter: | David Woldrich <dave> | ||||
| Component: | wst.validation | Assignee: | Rosendo Martinez <rosendo> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Chuck Bridgham <cbridgha> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | ccc, Olivier_Thomann | ||||
| Version: | 3.3.1 | Flags: | ccc:
review+
|
||||
| Target Milestone: | 3.4.2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
David Woldrich
Move to WebTools Well, I think we can consider this case, dep.index file size = 0, like the case where file does not exists. In terms of getting dependencies, in both cases there will not be dependencies. Attaching a new patch where, if the file size = 0, the _dependsOn and _dependents maps are just crated. Doing that, NPE can be avoided. Created attachment 213188 [details]
Proposed HEAD patch
Simple fix to check if the file size is 0
Rosendo, this has all the approvals it needs to get into WTP 3.4.2. Please commit it as soon as WTP 3.4.1 is final. Committed and pushed. |