mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-08 23:12:57 -04:00
Merge pull request #1125 from Obique/master
Added null check to get rid of 'NULL Session' spam
This commit is contained in:
Binary file not shown.
@@ -78,7 +78,7 @@ public class CellObject extends SWGObject implements Serializable {
|
||||
public void sendBaselines(Client destination) {
|
||||
|
||||
if(destination == null || destination.getSession() == null) {
|
||||
System.out.println("NULL session");
|
||||
System.out.println("NULL session [baseline]");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ public class CellObject extends SWGObject implements Serializable {
|
||||
public void sendPermissionMessage(Client destination) {
|
||||
|
||||
if(destination == null || destination.getSession() == null) {
|
||||
System.out.println("NULL session");
|
||||
System.out.println("NULL session [permission]");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -997,7 +997,6 @@ public class ObjectService implements INetworkDispatch {
|
||||
}
|
||||
CreatureObject creature = null;
|
||||
if(getObject(objectId) == null) {
|
||||
System.out.println("SelectCharacter: not in object list");
|
||||
creature = getCreatureFromDB(objectId);
|
||||
if(creature == null) {
|
||||
System.out.println("Cant get creature from db");
|
||||
@@ -1006,6 +1005,8 @@ public class ObjectService implements INetworkDispatch {
|
||||
System.err.println("Name: " + creature.getCustomName());
|
||||
System.out.println("Player with ObjID of " + creature.getObjectID() + " tried logging in but has a null/empty name!");
|
||||
return;
|
||||
} else {
|
||||
System.out.println("SelectCharacter: not in object list");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user