mirror of
https://github.com/Rogiel/l2jserver2
synced 2026-01-27 05:02:47 +00:00
Fixes an NullPointerException in CharacterService.receiveValidation
This commit is contained in:
@@ -503,6 +503,9 @@ public class CharacterServiceImpl extends AbstractService implements
|
|||||||
// BroadcastService will catch this event and update the knownlist
|
// BroadcastService will catch this event and update the knownlist
|
||||||
eventDispatcher.dispatch(new CharacterMoveEvent(character, old));
|
eventDispatcher.dispatch(new CharacterMoveEvent(character, old));
|
||||||
|
|
||||||
|
// target location is null if picking an item right after logging in and
|
||||||
|
// has not moved the char.
|
||||||
|
if (character.getTargetLocation() != null) {
|
||||||
if (point.getCoordinate().equals(
|
if (point.getCoordinate().equals(
|
||||||
character.getTargetLocation().getCoordinate())) {
|
character.getTargetLocation().getCoordinate())) {
|
||||||
character.setState(null);
|
character.setState(null);
|
||||||
@@ -510,6 +513,7 @@ public class CharacterServiceImpl extends AbstractService implements
|
|||||||
// TODO dispatch stop event
|
// TODO dispatch stop event
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void walk(L2Character character)
|
public void walk(L2Character character)
|
||||||
|
|||||||
Reference in New Issue
Block a user