Fix QuestManager throwing an NPE on quit
This commit is contained in:
parent
1c5bbda8cd
commit
f7e31d87d1
|
@ -391,7 +391,12 @@ 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()
|
||||
|
|
Loading…
Reference in New Issue