Check for null SystemMessage parameters.
This commit is contained in:
parent
8b31ddea75
commit
b32de96554
@ -367,6 +367,12 @@ public class SystemMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_params.length);
|
||||
for (SMParam param : _params)
|
||||
{
|
||||
if (param == null)
|
||||
{
|
||||
LOGGER.warning("Found null parameter for SystemMessageId " + _smId);
|
||||
continue;
|
||||
}
|
||||
|
||||
packet.writeD(param.getType());
|
||||
switch (param.getType())
|
||||
{
|
||||
|
@ -368,6 +368,12 @@ public class SystemMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_params.length);
|
||||
for (SMParam param : _params)
|
||||
{
|
||||
if (param == null)
|
||||
{
|
||||
LOGGER.warning("Found null parameter for SystemMessageId " + _smId);
|
||||
continue;
|
||||
}
|
||||
|
||||
packet.writeD(param.getType());
|
||||
switch (param.getType())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user