Skip to content

Commit aef36a7

Browse files
committed
Null check.
1 parent f143617 commit aef36a7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

blade-engine/src/com/bladecoder/engine/actions/InkCancelAction.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ public boolean run(VerbRunner cb) {
4444
w.getInkManager().getStory().switchToDefaultFlow();
4545
} else {
4646
inkVerbRunner = w.getInkManager().getVerbRunners().get(flow);
47+
48+
if (inkVerbRunner == null) {
49+
EngineLogger.debug("Flow not found: " + flow);
50+
return false;
51+
}
52+
4753
w.getInkManager().getStory().switchFlow(flow);
4854
}
4955

0 commit comments

Comments
 (0)