Skip to content

Commit

Permalink
Attempt to fix NPE with unit help. (#11974)
Browse files Browse the repository at this point in the history
  • Loading branch information
asvitkine committed Sep 20, 2023
1 parent 655a326 commit 1b4ffaa
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ Action buildMenu(final GameData gameData, final UiContext uiContext) {
String text = UnitStatsTable.getUnitStatsTable(gameData, uiContext);
JEditorPane editorPane = new JEditorPane("text/html", text);
editorPane.setEditable(false);
editorPane.setCaretPosition(0);
JScrollPane scroll = new JScrollPane(editorPane);
scroll.setBorder(BorderFactory.createEmptyBorder());
return InformationDialog.createDialog(scroll, unitHelpTitle);
Expand Down

0 comments on commit 1b4ffaa

Please sign in to comment.