Skip to content

Commit

Permalink
Do not throw a NullPointerException when --version is used
Browse files Browse the repository at this point in the history
Fixes the NPE introduced by #65.
  • Loading branch information
melissalinkert committed Apr 8, 2022
1 parent fd18510 commit 7e0692c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,14 @@ public static void main(String[] args) {

@Override
public Void call() throws Exception {
// Resolve symlinks
inputDirectory = inputDirectory.toRealPath();
if (printVersion) {
printVersion();
return null;
}

// Resolve symlinks
inputDirectory = inputDirectory.toRealPath();

setupLogger();

try {
Expand Down

0 comments on commit 7e0692c

Please sign in to comment.