mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
* Fixed possible null pointer exception for add land dialog.
This commit is contained in:
parent
e19c8cb641
commit
dda73f304e
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ public class AddLandDialog extends MageDialog {
|
|||
// decide from which sets basic lands are taken from
|
||||
for (String setCode :deck.getExpansionSetCodes()) {
|
||||
ExpansionInfo expansionInfo = ExpansionRepository.instance.getSetByCode(setCode);
|
||||
if (expansionInfo.hasBasicLands()) {
|
||||
if (expansionInfo != null && expansionInfo.hasBasicLands()) {
|
||||
this.setCodesland.add(expansionInfo.getCode());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue