Check for null when executing StageTimer, fixes #677

This commit is contained in:
BuildTools 2019-02-05 15:20:07 -05:00
parent 1e3226f859
commit 219d944d48

View File

@ -35,6 +35,12 @@ public class StageTimer implements Runnable {
@Override @Override
public void run() { public void run() {
if (quester == null) {
return;
}
if (quester.getQuestData(quest) == null) {
return;
}
if (quester.getQuestData(quest).delayOver) { if (quester.getQuestData(quest).delayOver) {
if (quest.getStages().indexOf(quester.getCurrentStage(quest)) == (quest.getStages().size() - 1)) { if (quest.getStages().indexOf(quester.getCurrentStage(quest)) == (quest.getStages().size() - 1)) {
if (quester.getCurrentStage(quest).getScript() != null) { if (quester.getCurrentStage(quest).getScript() != null) {