Skip to content

Commit

Permalink
setCurrentLineNumberColor may fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Wisser committed Jun 30, 2023
1 parent 9b17fc6 commit 58d2211
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,11 @@ protected String prepareStatementForAliasAnalysis(String statement) {
jScrollPane.setViewportView(editorPane);
if (jScrollPane.getGutter() != null) {
jScrollPane.getGutter().setIconRowHeaderInheritsGutterBackground(true);
jScrollPane.getGutter().setCurrentLineNumberColor(Color.black);
try {
jScrollPane.getGutter().setCurrentLineNumberColor(Color.black);
} catch (Throwable t) {
LogUtil.warn(t);
}
}
editorPane.setGutter(jScrollPane.getGutter());
consoleContainerPanel.add(jScrollPane);
Expand Down

0 comments on commit 58d2211

Please # to comment.