Skip to content

Commit

Permalink
Fix contest deletion (npe).
Browse files Browse the repository at this point in the history
  • Loading branch information
asofold committed Apr 29, 2013
1 parent bbb4346 commit 746e6f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Archer/src/me/asofold/bpl/archer/core/ContestManager.java
Expand Up @@ -273,7 +273,8 @@ public void deleteContest(Contest contest) {
contest.endContest("Contest deleted.");
final String lcName = contest.name.toLowerCase();
contests.remove(lcName);
worldMap.get(contest.world).remove(lcName);
final Set<Contest> perWorld = worldMap.get(contest.world.toLowerCase());
if (perWorld != null) perWorld.remove(contest);
}

/**
Expand Down

0 comments on commit 746e6f7

Please sign in to comment.