mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
Fix null reference exception when loading deck
in sealed or draft deck editor
This commit is contained in:
@@ -88,12 +88,11 @@ public class DeckController<T extends DeckBase> {
|
||||
* Load deck from file or clipboard
|
||||
*/
|
||||
public void loadDeck(Deck deck) {
|
||||
|
||||
if (deck.getName() == "") {
|
||||
newModel();
|
||||
}
|
||||
|
||||
if (!view.getCatalogManager().isInfinite()) {
|
||||
if (view.getCatalogManager().isInfinite()) {
|
||||
if (deck.getName() == "") {
|
||||
newModel();
|
||||
}
|
||||
} else {
|
||||
CardPool catalogClone = new CardPool(view.getInitialCatalog());
|
||||
deck = pickFromCatalog(deck, catalogClone);
|
||||
ItemPool<PaperCard> catalogPool = view.getCatalogManager().getPool();
|
||||
|
||||
Reference in New Issue
Block a user