Browse Source

added null-check for #64

MasterCake 4 years ago
parent
commit
27441eb895
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Plugin/src/main/java/de/Linus122/TimeIsMoney/Metrics.java

+ 1 - 1
Plugin/src/main/java/de/Linus122/TimeIsMoney/Metrics.java

@@ -143,7 +143,7 @@ public class Metrics {
 		}
 		}
 		//looks for the version file (not all linux distros)
 		//looks for the version file (not all linux distros)
 		File fileVersion = new File("/proc/version");
 		File fileVersion = new File("/proc/version");
-		if (fileVersion.exists()) {
+		if (fileVersion.exists() && fileList != null) {
 			fileList = Arrays.copyOf(fileList, fileList.length + 1);
 			fileList = Arrays.copyOf(fileList, fileList.length + 1);
 			fileList[fileList.length - 1] = fileVersion;
 			fileList[fileList.length - 1] = fileVersion;
 		}
 		}