menu swapper: disable pmd check

This commit is contained in:
Adam
2022-06-17 10:15:52 -04:00
parent 020acbffb6
commit 463a11da59

View File

@@ -774,6 +774,7 @@ public class MenuEntrySwapperPlugin extends Plugin
final NPC npc = entry.getNpc();
assert npc != null;
final NPCComposition composition = npc.getTransformedComposition();
assert composition != null;
final String[] actions = composition.getActions();
final Integer swapConfig = getNpcSwapConfig(false, composition.getId());
@@ -847,7 +848,7 @@ public class MenuEntrySwapperPlugin extends Plugin
.setType(MenuAction.RUNELITE)
.onClick(walkHereConsumer(true, composition));
if (getNpcSwapConfig(true, composition.getId()) != null || getNpcSwapConfig(false, composition.getId()) != null)
if (getNpcSwapConfig(true, composition.getId()) != null || getNpcSwapConfig(false, composition.getId()) != null) // NOPMD: BrokenNullCheck
{
// Reset
client.createMenuEntry(idx)