mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 09:48:02 +00:00
Merge branch 'fix_fantasy_block_npe' into 'master'
Fix NPE for Fantasy Block Draft when there is only one meta-set. See merge request core-developers/forge!4242
This commit is contained in:
@@ -152,7 +152,11 @@ public class BoosterDraft implements IBoosterDraft {
|
||||
} else {
|
||||
// Only one set is chosen. If that set lets you draft 2 cards to start adjust draft settings now
|
||||
String setCode = sets.get(0);
|
||||
doublePickDuringDraft = FModel.getMagicDb().getEditions().get(setCode).getDoublePickDuringDraft();
|
||||
CardEdition edition = FModel.getMagicDb().getEditions().get(setCode);
|
||||
// If this is metaset, edtion will be null
|
||||
if (edition != null) {
|
||||
doublePickDuringDraft = edition.getDoublePickDuringDraft();
|
||||
}
|
||||
|
||||
final IUnOpenedProduct product1 = block.getBooster(setCode);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user