| Summary: | NPE on shrinking a Thumbnail | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Johannes Quast <johannes.quast> |
| Component: | GEF-Legacy Draw2d | Assignee: | Alexander Nyßen <nyssen> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | nyssen |
| Version: | 3.1.1 | ||
| Target Milestone: | 3.6.0 (Helios) M7 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Johannes Quast
zoomTextLayout may legally return null in case the computed zoomWidth is 0, as this is no valid size for TextLayout. I thus added a null check to drawTextLayout and have it directly return in case the result of zoomTextLayout evaluates to null. Changes are committed to HEAD. |