Skip to content

Commit

Permalink
Fixes GrailsVersion throw NPE when execute grace -v
Browse files Browse the repository at this point in the history
Closes gh-473
  • Loading branch information
rainboyan committed Aug 15, 2024
1 parent 0edce75 commit 9e6f98e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private GrailsVersion(String version, String buildTime, String commitId) {
}

this.commitId = setOrParseCommitId(commitId, matcher);
this.snapshot = version.endsWith("SNAPSHOT") ? 0L : parseSnapshot(matcher);
this.snapshot = version.endsWith("SNAPSHOT") ? Long.valueOf(0L) : parseSnapshot(matcher);
}

private Long parseSnapshot(Matcher matcher) {
Expand Down

0 comments on commit 9e6f98e

Please sign in to comment.