Skip to content

Commit

Permalink
Fix NPE in InvalidConfigurationException
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Nov 7, 2024
1 parent a58fe3f commit 5b146a7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ public InvalidConfigurationException(String message, Throwable cause) {
}

public InvalidConfigurationException(Throwable cause) {
super(cause.getMessage(), cause);
super(cause == null ? null : cause.getMessage(), cause);
this.detailedExitCode = null;
}

public InvalidConfigurationException(Code code, Throwable cause) {
super(cause.getMessage(), cause);
this.detailedExitCode = createDetailedExitCode(cause.getMessage(), code);
super(cause == null ? null : cause.getMessage(), cause);
this.detailedExitCode = cause == null ? null : createDetailedExitCode(cause.getMessage(), code);
}

public InvalidConfigurationException(DetailedExitCode detailedExitCode, Throwable cause) {
super(cause.getMessage(), cause);
super(cause == null ? null : cause.getMessage(), cause);
this.detailedExitCode = detailedExitCode;
}

Expand Down

0 comments on commit 5b146a7

Please sign in to comment.