Ensure stage is not null when checking objective, fixes #1064

This commit is contained in:
PikaMug 2020-02-03 16:50:13 -05:00
parent 3bf0c58671
commit 225899a8d7

View File

@ -1186,7 +1186,7 @@ public class Quester {
* @return true if quest contains specified objective
*/
public boolean containsObjective(Quest quest, String s) {
if (quest == null) {
if (quest == null || getCurrentStage(quest) == null) {
return false;
}
return getCurrentStage(quest).containsObjective(s);