mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-06 07:32:46 +00:00
Fixes an NullPointerException in CharacterService.receiveValidation
This commit is contained in:
@@ -503,11 +503,15 @@ 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));
|
||||||
|
|
||||||
if (point.getCoordinate().equals(
|
// target location is null if picking an item right after logging in and
|
||||||
character.getTargetLocation().getCoordinate())) {
|
// has not moved the char.
|
||||||
character.setState(null);
|
if (character.getTargetLocation() != null) {
|
||||||
character.setTargetLocation(null);
|
if (point.getCoordinate().equals(
|
||||||
// TODO dispatch stop event
|
character.getTargetLocation().getCoordinate())) {
|
||||||
|
character.setState(null);
|
||||||
|
character.setTargetLocation(null);
|
||||||
|
// TODO dispatch stop event
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user