Skip to content

Commit

Permalink
added null-check for #64
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercake10 committed May 23, 2020
1 parent 325c770 commit 27441eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugin/src/main/java/de/Linus122/TimeIsMoney/Metrics.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public boolean accept(File dir, String filename) {
}
//looks for the version file (not all linux distros)
File fileVersion = new File("/proc/version");
if (fileVersion.exists()) {
if (fileVersion.exists() && fileList != null) {
fileList = Arrays.copyOf(fileList, fileList.length + 1);
fileList[fileList.length - 1] = fileVersion;
}
Expand Down

0 comments on commit 27441eb

Please sign in to comment.