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

View File

@ -391,9 +391,14 @@ public class QuestManager extends MiniDbClientPlugin<QuestClientData>
@Override @Override
public void saveData(String name, int accountId) 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() public List<Quest> getAvailableQuests()
{ {
return _availableQuests; return _availableQuests;