Check for null map.

This commit is contained in:
Trent Hensler
2016-05-30 14:32:32 -07:00
parent 63ef227a7d
commit c55ad60705
2 changed files with 11 additions and 6 deletions
@@ -17,6 +17,7 @@ import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import java.util.logging.Level;
/**
* Class to handle vault operations with new UUIDs.
@@ -312,7 +313,9 @@ public class UUIDVaultManager {
}
try {
yaml.save(file);
} catch (IOException ignored) {
} catch (Exception e) {
PlayerVaults.getInstance().getLogger().log(Level.SEVERE, "Failed to save vault file for: " + holder.toString());
e.printStackTrace();
}
}
}.runTaskAsynchronously(PlayerVaults.getInstance());