mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-23 19:15:49 +01:00
Check for null when executing StageTimer, fixes #677
This commit is contained in:
parent
1e3226f859
commit
219d944d48
@ -35,6 +35,12 @@ public class StageTimer implements Runnable {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
if (quester == null) {
|
||||
return;
|
||||
}
|
||||
if (quester.getQuestData(quest) == null) {
|
||||
return;
|
||||
}
|
||||
if (quester.getQuestData(quest).delayOver) {
|
||||
if (quest.getStages().indexOf(quester.getCurrentStage(quest)) == (quest.getStages().size() - 1)) {
|
||||
if (quester.getCurrentStage(quest).getScript() != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user