Community
Participate
Working Groups
Build is : org.eclipse.jface.text_3.8.0.v20111115-0800.jar In org.eclipse.jface.text.presentation.PresentationReconciler line 211 org.eclipse.jface.text.presentation.PresentationReconciler.InternalListener.widgetRegion2ModelRegion(TextEvent) might return null but it's not checked in the following, resulting in an NPE.
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