Fix QuestManager throwing an NPE on quit
This commit is contained in:
parent
1c5bbda8cd
commit
f7e31d87d1
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user