diff --git a/spotbugs-plugin/src/main/java/com/linkedin/avroutil1/spotbugs/OldSchemaConstructableUsageDetector.java b/spotbugs-plugin/src/main/java/com/linkedin/avroutil1/spotbugs/OldSchemaConstructableUsageDetector.java index 140369e9c..38bd7abd5 100644 --- a/spotbugs-plugin/src/main/java/com/linkedin/avroutil1/spotbugs/OldSchemaConstructableUsageDetector.java +++ b/spotbugs-plugin/src/main/java/com/linkedin/avroutil1/spotbugs/OldSchemaConstructableUsageDetector.java @@ -98,6 +98,9 @@ protected void lookForSchemaConstructableVariables(ClassContext classContext) { continue; //no variables to look at } LocalVariableTable localVariableTable = method.getLocalVariableTable(); //includes method args + if (localVariableTable == null) { + return; + } for (LocalVariable variable : localVariableTable.getLocalVariableTable()) { if (checkSignature(variable.getSignature())) { //TODO - figure out how to add sour line number?