Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

Commit

Permalink
Fix NPE in LocalDirectory.lastModified
Browse files Browse the repository at this point in the history
  • Loading branch information
blindpirate committed Apr 24, 2017
1 parent 5e5835c commit 3b8fa41
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ protected void setDir(File rootDir) {

@Override
public long getUpdateTime() {
return rootDir.lastModified();
if (rootDir == EMPTY_DIR) {
return 0L;
} else {
return rootDir.lastModified();
}
}

public void setDependencies(GolangDependencySet dependencies) {
Expand Down

0 comments on commit 3b8fa41

Please sign in to comment.