Fixed possible deleteInstanceTime NPE.
This commit is contained in:
parent
b276cf2695
commit
37e5ece16d
@ -625,7 +625,10 @@ public final class InstanceManager implements IGameXmlReader
|
|||||||
ps.setInt(1, player.getObjectId());
|
ps.setInt(1, player.getObjectId());
|
||||||
ps.setInt(2, id);
|
ps.setInt(2, id);
|
||||||
ps.execute();
|
ps.execute();
|
||||||
_playerInstanceTimes.get(player.getObjectId()).remove(id);
|
if (_playerInstanceTimes.get(player.getObjectId()) != null)
|
||||||
|
{
|
||||||
|
_playerInstanceTimes.get(player.getObjectId()).remove(id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@ -625,7 +625,10 @@ public final class InstanceManager implements IGameXmlReader
|
|||||||
ps.setInt(1, player.getObjectId());
|
ps.setInt(1, player.getObjectId());
|
||||||
ps.setInt(2, id);
|
ps.setInt(2, id);
|
||||||
ps.execute();
|
ps.execute();
|
||||||
_playerInstanceTimes.get(player.getObjectId()).remove(id);
|
if (_playerInstanceTimes.get(player.getObjectId()) != null)
|
||||||
|
{
|
||||||
|
_playerInstanceTimes.get(player.getObjectId()).remove(id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@ -625,7 +625,10 @@ public final class InstanceManager implements IGameXmlReader
|
|||||||
ps.setInt(1, player.getObjectId());
|
ps.setInt(1, player.getObjectId());
|
||||||
ps.setInt(2, id);
|
ps.setInt(2, id);
|
||||||
ps.execute();
|
ps.execute();
|
||||||
_playerInstanceTimes.get(player.getObjectId()).remove(id);
|
if (_playerInstanceTimes.get(player.getObjectId()) != null)
|
||||||
|
{
|
||||||
|
_playerInstanceTimes.get(player.getObjectId()).remove(id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@ -625,7 +625,10 @@ public final class InstanceManager implements IGameXmlReader
|
|||||||
ps.setInt(1, player.getObjectId());
|
ps.setInt(1, player.getObjectId());
|
||||||
ps.setInt(2, id);
|
ps.setInt(2, id);
|
||||||
ps.execute();
|
ps.execute();
|
||||||
_playerInstanceTimes.get(player.getObjectId()).remove(id);
|
if (_playerInstanceTimes.get(player.getObjectId()) != null)
|
||||||
|
{
|
||||||
|
_playerInstanceTimes.get(player.getObjectId()).remove(id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user