| Summary: | NPE in Reindenter | ||
|---|---|---|---|
| Product: | [Tools] PTP | Reporter: | Matthew Fotzler <incongruous> |
| Component: | Photran.Unknown | Assignee: | Jeffrey Overbey <com-eclipse-dot-org> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | com-eclipse-dot-org |
| Version: | unspecified | ||
| Target Milestone: | 6.0.7 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
| Bug Depends on: | 284403 | ||
| Bug Blocks: | |||
|
Description
Matthew Fotzler
After looking at the line in question: while (index+1 < array.length && getLine(array[index+1]) == line) I think instead of checking index+1 < array.length, it should be checking index+1 < size, since array.length is larger than the actual number of tokens in the array. There is also a bug when attempting to reindent with the Move Module Entities refactoring that causes the majority of the file to be indented when it should not be. This has been fixed in 7.0/HEAD for a while; I just committed the fix to 6_0 for the 6.0.7 release as well. |