Fixed probable SendMessageLocalisationData getLocalisation NPE.

This commit is contained in:
MobiusDevelopment 2022-08-30 00:48:09 +00:00
parent f6d7d83fce
commit 0b313fa2ac
27 changed files with 135 additions and 0 deletions

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{

View File

@ -91,6 +91,11 @@ public class SendMessageLocalisationData implements IXmlReader
{
if (Config.MULTILANG_ENABLE)
{
if (player == null)
{
return message;
}
final Map<String[], String[]> localisations = SEND_MESSAGE_LOCALISATIONS.get(player.getLang());
if (localisations != null)
{