Log when SystemMessage has SystemMessageId with null parameter.

This commit is contained in:
MobiusDevelopment 2020-03-10 23:51:21 +00:00
parent 04cf6bf8a9
commit 75e0e632a4
15 changed files with 105 additions and 15 deletions

View File

@ -393,7 +393,6 @@ public class SystemMessage implements IClientOutgoingPacket
{
params[i] = _params[i].getValue();
}
packet.writeH(SystemMessageId.S1_2.getId());
packet.writeC(0x01);
packet.writeC(TYPE_TEXT);
@ -406,7 +405,14 @@ public class SystemMessage implements IClientOutgoingPacket
packet.writeC(_params.length);
for (SMParam param : _params)
{
if (param == null)
{
LOGGER.warning("Found null parameter for SystemMessageId " + _smId);
continue;
}
packet.writeC(param.getType());
switch (param.getType())
{
case TYPE_ELEMENT_NAME:

View File

@ -393,7 +393,6 @@ public class SystemMessage implements IClientOutgoingPacket
{
params[i] = _params[i].getValue();
}
packet.writeH(SystemMessageId.S1_2.getId());
packet.writeC(0x01);
packet.writeC(TYPE_TEXT);
@ -406,7 +405,14 @@ public class SystemMessage implements IClientOutgoingPacket
packet.writeC(_params.length);
for (SMParam param : _params)
{
if (param == null)
{
LOGGER.warning("Found null parameter for SystemMessageId " + _smId);
continue;
}
packet.writeC(param.getType());
switch (param.getType())
{
case TYPE_ELEMENT_NAME:

View File

@ -400,7 +400,6 @@ public class SystemMessage implements IClientOutgoingPacket
{
params[i] = _params[i].getValue();
}
packet.writeH(SystemMessageId.S1_2.getId());
packet.writeC(0x01);
packet.writeC(TYPE_TEXT);
@ -413,7 +412,14 @@ public class SystemMessage implements IClientOutgoingPacket
packet.writeC(_params.length);
for (SMParam param : _params)
{
if (param == null)
{
LOGGER.warning("Found null parameter for SystemMessageId " + _smId);
continue;
}
packet.writeC(param.getType());
switch (param.getType())
{
case TYPE_ELEMENT_NAME:

View File

@ -400,7 +400,6 @@ public class SystemMessage implements IClientOutgoingPacket
{
params[i] = _params[i].getValue();
}
packet.writeH(SystemMessageId.S1_2.getId());
packet.writeC(0x01);
packet.writeC(TYPE_TEXT);
@ -413,7 +412,14 @@ public class SystemMessage implements IClientOutgoingPacket
packet.writeC(_params.length);
for (SMParam param : _params)
{
if (param == null)
{
LOGGER.warning("Found null parameter for SystemMessageId " + _smId);
continue;
}
packet.writeC(param.getType());
switch (param.getType())
{
case TYPE_ELEMENT_NAME:

View File

@ -400,7 +400,6 @@ public class SystemMessage implements IClientOutgoingPacket
{
params[i] = _params[i].getValue();
}
packet.writeH(SystemMessageId.S1_2.getId());
packet.writeC(0x01);
packet.writeC(TYPE_TEXT);
@ -413,7 +412,14 @@ public class SystemMessage implements IClientOutgoingPacket
packet.writeC(_params.length);
for (SMParam param : _params)
{
if (param == null)
{
LOGGER.warning("Found null parameter for SystemMessageId " + _smId);
continue;
}
packet.writeC(param.getType());
switch (param.getType())
{
case TYPE_ELEMENT_NAME:

View File

@ -400,7 +400,6 @@ public class SystemMessage implements IClientOutgoingPacket
{
params[i] = _params[i].getValue();
}
packet.writeH(SystemMessageId.S1_2.getId());
packet.writeC(0x01);
packet.writeC(TYPE_TEXT);
@ -413,7 +412,14 @@ public class SystemMessage implements IClientOutgoingPacket
packet.writeC(_params.length);
for (SMParam param : _params)
{
if (param == null)
{
LOGGER.warning("Found null parameter for SystemMessageId " + _smId);
continue;
}
packet.writeC(param.getType());
switch (param.getType())
{
case TYPE_ELEMENT_NAME:

View File

@ -400,7 +400,6 @@ public class SystemMessage implements IClientOutgoingPacket
{
params[i] = _params[i].getValue();
}
packet.writeH(SystemMessageId.S1_2.getId());
packet.writeC(0x01);
packet.writeC(TYPE_TEXT);
@ -413,7 +412,14 @@ public class SystemMessage implements IClientOutgoingPacket
packet.writeC(_params.length);
for (SMParam param : _params)
{
if (param == null)
{
LOGGER.warning("Found null parameter for SystemMessageId " + _smId);
continue;
}
packet.writeC(param.getType());
switch (param.getType())
{
case TYPE_ELEMENT_NAME:

View File

@ -400,7 +400,6 @@ public class SystemMessage implements IClientOutgoingPacket
{
params[i] = _params[i].getValue();
}
packet.writeH(SystemMessageId.S1_2.getId());
packet.writeC(0x01);
packet.writeC(TYPE_TEXT);
@ -413,7 +412,14 @@ public class SystemMessage implements IClientOutgoingPacket
packet.writeC(_params.length);
for (SMParam param : _params)
{
if (param == null)
{
LOGGER.warning("Found null parameter for SystemMessageId " + _smId);
continue;
}
packet.writeC(param.getType());
switch (param.getType())
{
case TYPE_ELEMENT_NAME:

View File

@ -400,7 +400,6 @@ public class SystemMessage implements IClientOutgoingPacket
{
params[i] = _params[i].getValue();
}
packet.writeH(SystemMessageId.S1_2.getId());
packet.writeC(0x01);
packet.writeC(TYPE_TEXT);
@ -413,7 +412,14 @@ public class SystemMessage implements IClientOutgoingPacket
packet.writeC(_params.length);
for (SMParam param : _params)
{
if (param == null)
{
LOGGER.warning("Found null parameter for SystemMessageId " + _smId);
continue;
}
packet.writeC(param.getType());
switch (param.getType())
{
case TYPE_ELEMENT_NAME:

View File

@ -400,7 +400,6 @@ public class SystemMessage implements IClientOutgoingPacket
{
params[i] = _params[i].getValue();
}
packet.writeH(SystemMessageId.S1_2.getId());
packet.writeC(0x01);
packet.writeC(TYPE_TEXT);
@ -413,7 +412,14 @@ public class SystemMessage implements IClientOutgoingPacket
packet.writeC(_params.length);
for (SMParam param : _params)
{
if (param == null)
{
LOGGER.warning("Found null parameter for SystemMessageId " + _smId);
continue;
}
packet.writeC(param.getType());
switch (param.getType())
{
case TYPE_ELEMENT_NAME:

View File

@ -400,7 +400,6 @@ public class SystemMessage implements IClientOutgoingPacket
{
params[i] = _params[i].getValue();
}
packet.writeH(SystemMessageId.S1_2.getId());
packet.writeC(0x01);
packet.writeC(TYPE_TEXT);
@ -413,7 +412,14 @@ public class SystemMessage implements IClientOutgoingPacket
packet.writeC(_params.length);
for (SMParam param : _params)
{
if (param == null)
{
LOGGER.warning("Found null parameter for SystemMessageId " + _smId);
continue;
}
packet.writeC(param.getType());
switch (param.getType())
{
case TYPE_ELEMENT_NAME:

View File

@ -407,7 +407,6 @@ public class SystemMessage implements IClientOutgoingPacket
{
params[i] = _params[i].getValue();
}
packet.writeH(SystemMessageId.S1_2.getId());
packet.writeC(0x01);
packet.writeC(TYPE_TEXT);
@ -420,7 +419,14 @@ public class SystemMessage implements IClientOutgoingPacket
packet.writeC(_params.length);
for (SMParam param : _params)
{
if (param == null)
{
LOGGER.warning("Found null parameter for SystemMessageId " + _smId);
continue;
}
packet.writeC(param.getType());
switch (param.getType())
{
case TYPE_ELEMENT_NAME:

View File

@ -407,7 +407,6 @@ public class SystemMessage implements IClientOutgoingPacket
{
params[i] = _params[i].getValue();
}
packet.writeH(SystemMessageId.S1_2.getId());
packet.writeC(0x01);
packet.writeC(TYPE_TEXT);
@ -420,7 +419,14 @@ public class SystemMessage implements IClientOutgoingPacket
packet.writeC(_params.length);
for (SMParam param : _params)
{
if (param == null)
{
LOGGER.warning("Found null parameter for SystemMessageId " + _smId);
continue;
}
packet.writeC(param.getType());
switch (param.getType())
{
case TYPE_ELEMENT_NAME:

View File

@ -407,7 +407,6 @@ public class SystemMessage implements IClientOutgoingPacket
{
params[i] = _params[i].getValue();
}
packet.writeH(SystemMessageId.S1_2.getId());
packet.writeC(0x01);
packet.writeC(TYPE_TEXT);
@ -420,7 +419,14 @@ public class SystemMessage implements IClientOutgoingPacket
packet.writeC(_params.length);
for (SMParam param : _params)
{
if (param == null)
{
LOGGER.warning("Found null parameter for SystemMessageId " + _smId);
continue;
}
packet.writeC(param.getType());
switch (param.getType())
{
case TYPE_ELEMENT_NAME:

View File

@ -400,7 +400,6 @@ public class SystemMessage implements IClientOutgoingPacket
{
params[i] = _params[i].getValue();
}
packet.writeH(SystemMessageId.S1_2.getId());
packet.writeC(0x01);
packet.writeC(TYPE_TEXT);
@ -413,7 +412,14 @@ public class SystemMessage implements IClientOutgoingPacket
packet.writeC(_params.length);
for (SMParam param : _params)
{
if (param == null)
{
LOGGER.warning("Found null parameter for SystemMessageId " + _smId);
continue;
}
packet.writeC(param.getType());
switch (param.getType())
{
case TYPE_ELEMENT_NAME: