Skip to content

Commit

Permalink
Prevent possible NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
ottlinger committed Feb 3, 2025
1 parent e5073ff commit 574d55e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ private static void processOutputArgs(final ArgumentContext context) {

if (OUTPUT_STYLE.isSelected()) {
String selected = OUTPUT_STYLE.getSelected().getKey();
if (selected.equals("x")) {
if ("x".equals(selected)) {
// display deprecated message.
context.getCommandLine().hasOption("x");
context.getConfiguration().setStyleSheet(StyleSheets.getStyleSheet("xml"));
Expand Down

0 comments on commit 574d55e

Please sign in to comment.