Skip to content

Commit

Permalink
Fixed NPE when onEnterBlocked() is called during startup.
Browse files Browse the repository at this point in the history
  • Loading branch information
christ66 committed Sep 8, 2014
1 parent 41e2edc commit 72272f4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ public void onEnterBuildable(BuildableItem bi) {

@Override
public void onEnterBlocked(BlockedItem bi) {
QueueItemCache.get().getItem(bi.id).setBlocked();
ItemInfo item = QueueItemCache.get().getItem(bi.id);
// Null at startup
if (item != null) {
item.setBlocked();
}
}

}

0 comments on commit 72272f4

Please sign in to comment.