banktags: null check for no tagtabs
This commit is contained in:
@@ -185,6 +185,11 @@ public class BankTagsPlugin extends Plugin implements MouseWheelListener, KeyLis
|
|||||||
private void removeInvalidTags(final String key)
|
private void removeInvalidTags(final String key)
|
||||||
{
|
{
|
||||||
final String value = configManager.getConfiguration(CONFIG_GROUP, key);
|
final String value = configManager.getConfiguration(CONFIG_GROUP, key);
|
||||||
|
if (value == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
String replaced = value.replaceAll("[<>/]", "");
|
String replaced = value.replaceAll("[<>/]", "");
|
||||||
if (!value.equals(replaced))
|
if (!value.equals(replaced))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user