mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- Fixed a possible NPE
This commit is contained in:
@@ -630,7 +630,7 @@ public class ComputerUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (typeList.size() < amount) {
|
if (typeList.size() < amount) {
|
||||||
return null;
|
return new ArrayList<Card>();
|
||||||
}
|
}
|
||||||
|
|
||||||
CardLists.sortByPowerAsc(typeList);
|
CardLists.sortByPowerAsc(typeList);
|
||||||
|
|||||||
Reference in New Issue
Block a user