Check for null SystemMessage parameters.

This commit is contained in:
MobiusDevelopment 2020-05-01 00:42:45 +00:00
parent 8b31ddea75
commit b32de96554
2 changed files with 12 additions and 0 deletions

View File

@ -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())
{

View File

@ -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())
{