mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-55354 - IOOBE: MarkupModelImpl.addLineHighlighter
This commit is contained in:
@@ -164,7 +164,7 @@ public class DetailViewImpl extends JPanel implements DetailView, UserDataHolder
|
||||
getEditor().setBorder(IdeBorderFactory.createBorder(SideBorder.TOP));
|
||||
|
||||
clearHightlighting();
|
||||
if (lineAttributes != null && positionToNavigate != null) {
|
||||
if (lineAttributes != null && positionToNavigate != null && positionToNavigate.line < getEditor().getDocument().getLineCount()) {
|
||||
myHighlighter = getEditor().getMarkupModel().addLineHighlighter(positionToNavigate.line, HighlighterLayer.SELECTION - 1,
|
||||
lineAttributes);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user