Log when SystemMessage has SystemMessageId with null parameter.
This commit is contained in:
parent
04cf6bf8a9
commit
75e0e632a4
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user