mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-10-30 02:26:58 +00:00
Fix for NPE while loading data
This commit is contained in:
parent
0ddc073a3d
commit
eb61a9f8ff
@ -98,6 +98,9 @@ public class DataUtilities {
|
|||||||
private static void logScripts(Scripts scripts, PrintWriter logger) {
|
private static void logScripts(Scripts scripts, PrintWriter logger) {
|
||||||
if (scripts != null && scripts.getScript() != null || !scripts.getScript().isEmpty()) {
|
if (scripts != null && scripts.getScript() != null || !scripts.getScript().isEmpty()) {
|
||||||
scripts.getScript().forEach((script) -> {
|
scripts.getScript().forEach((script) -> {
|
||||||
|
if (script.getBlock() == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
Queue<Block> evaluateStack = new ArrayDeque<>();
|
Queue<Block> evaluateStack = new ArrayDeque<>();
|
||||||
evaluateStack.add(script.getBlock());
|
evaluateStack.add(script.getBlock());
|
||||||
int blockCount = 0;
|
int blockCount = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user