Skip to content

Commit

Permalink
Checks for null worlds on load.
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Mar 7, 2019
1 parent 79b568f commit 622057c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/world/bentobox/warps/WarpSignsManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private void loadWarpList() {
// Load into map
if (warps != null) {
warps.getWarpSigns().forEach((k,v) -> {
if (k != null && (k.getBlock().getType().equals(Material.SIGN) || k.getBlock().getType().equals(Material.WALL_SIGN))) {
if (k != null && k.getWorld() != null && (k.getBlock().getType().equals(Material.SIGN) || k.getBlock().getType().equals(Material.WALL_SIGN))) {
// Add to map
getWarpMap(k.getWorld()).put(v, k);
}
Expand Down

0 comments on commit 622057c

Please sign in to comment.