| Summary: | NPE in SpaceTreeLayoutAlgorithm.setDirection | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Robert Walter <robertw> |
| Component: | GEF Layout | Assignee: | Zoltan Ujhelyi <zoltan.ujhelyi> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | zoltan.ujhelyi |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 8 | ||
| Whiteboard: | |||
|
Description
Robert Walter
okay, my bad, the NPE appears a bit later in "setDirection" because the context hasn't been set. To reproduce this error, just call the constructor like this: new SpaceTreeLayoutAlgorithm(SpaceTreeLayoutAlgorithm.LEFT_DOWN, true); Thanks for the examination. I have pushed fixes into master with additional checks that do not try to update the nodes before they are created. |