Oops. Fix NPE

This commit is contained in:
kashike
2016-02-06 12:13:41 -08:00
parent aaef544ea4
commit 06bb39d345
@@ -276,14 +276,16 @@ public class UUIDVaultManager {
} }
File file = new File(this.directory, uniqueId.toString() + ".yml"); File file = new File(this.directory, uniqueId.toString() + ".yml");
if (!file.exists() && createIfNotFound) { if (!file.exists()) {
try { if (createIfNotFound) {
file.createNewFile(); try {
} catch (IOException e) { file.createNewFile();
// Who cares? } catch (IOException e) {
// Who cares?
}
} else {
return null;
} }
} else {
return null;
} }
return YamlConfiguration.loadConfiguration(file); return YamlConfiguration.loadConfiguration(file);