Fix QuestManager throwing an NPE on quit

This commit is contained in:
Sam 2017-11-08 11:47:49 +00:00 committed by Alexander Meech
parent 1c5bbda8cd
commit f7e31d87d1
1 changed files with 7 additions and 2 deletions

View File

@ -391,9 +391,14 @@ public class QuestManager extends MiniDbClientPlugin<QuestClientData>
@Override
public void saveData(String name, int accountId)
{
Get(name).getHologram().stop();
Hologram hologram = Get(name).getHologram();
if (hologram != null)
{
hologram.stop();
}
}
public List<Quest> getAvailableQuests()
{
return _availableQuests;