Fixed profession respec exit bug

This commit is contained in:
Treeku
2014-04-13 16:36:35 +01:00
parent 7cee1990b5
commit 0e3a0bd151
+5 -1
View File
@@ -537,7 +537,11 @@ public class PlayerService implements INetworkDispatch {
PlayerObject player = (PlayerObject) creature.getSlottedObject("ghost");
int level = 0;
if (player == null) {
if (creature == null || player == null) {
return;
}
if (profession == null || profession.equals("")) {
return;
}