mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-12 22:45:31 -04:00
Added null checks for objects before sending bytes in SWGList
This commit is contained in:
@@ -407,7 +407,15 @@ public class SWGList<E> extends Delta implements List<E> {
|
||||
int size = 0;
|
||||
|
||||
for (Object o : list) {
|
||||
if (o == null) {
|
||||
System.err.println("ERROR: Null object in SWGList!");
|
||||
continue;
|
||||
}
|
||||
byte[] object = Baseline.toBytes(o);
|
||||
if (object == null) {
|
||||
System.err.println("ERROR: Null Baseline.toBytes in SWGList!");
|
||||
continue;
|
||||
}
|
||||
size += object.length;
|
||||
|
||||
IoBuffer buffer = createBuffer(size);
|
||||
|
||||
Reference in New Issue
Block a user