| Summary: | [implementation] Possible NPE in PresentationReconciler | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Sven Efftinge <sven.efftinge> |
| Component: | Text | Assignee: | Dani Megert <daniel_megert> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert |
| Version: | 3.8 | ||
| Target Milestone: | 3.8 M5 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Sven Efftinge
Do you have steps to reproduce the NPE or did only observe it in the code? In my context 1) a BadLocationException is thrown in org.eclipse.jface.text.projection.ProjectionMapping.checkImageOffset(int) because imageOffset < getImageLength() 2) that one is caught in org.eclipse.jface.text.TextViewer.widgetRange2ModelRange(IRegion) where modelEndOffset == -1. So the method returns null. Fixed in master: 1f15eb8dc3e0a2f94ae44220c4601ba5bee46318 |