mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
avoid NPE when right clicking during draft
Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
This commit is contained in:
@@ -257,7 +257,11 @@ public abstract class ACEditorBase<TItem extends InventoryItem, TModel extends D
|
||||
public abstract DeckController<TModel> getDeckController();
|
||||
|
||||
protected Deck getHumanDeck() {
|
||||
return getDeckController().getModel().getHumanDeck();
|
||||
try {
|
||||
return getDeckController().getModel().getHumanDeck();
|
||||
} catch (NullPointerException ex) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user