diff options
Diffstat (limited to 'src/com')
-rwxr-xr-x | src/com/dabomstew/pkrandom/romhandlers/Gen3RomHandler.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/dabomstew/pkrandom/romhandlers/Gen3RomHandler.java b/src/com/dabomstew/pkrandom/romhandlers/Gen3RomHandler.java index 1063902..fb15126 100755 --- a/src/com/dabomstew/pkrandom/romhandlers/Gen3RomHandler.java +++ b/src/com/dabomstew/pkrandom/romhandlers/Gen3RomHandler.java @@ -2588,7 +2588,10 @@ public class Gen3RomHandler extends AbstractGBRomHandler { @Override
public List<Integer> getMainGameLegendaries() {
- return Arrays.stream(romEntry.arrayEntries.get("MainGameLegendaries")).boxed().collect(Collectors.toList());
+ if (romEntry.arrayEntries.get("MainGameLegendaries") != null) {
+ return Arrays.stream(romEntry.arrayEntries.get("MainGameLegendaries")).boxed().collect(Collectors.toList());
+ }
+ return new ArrayList<>();
}
@Override
|