Skip to content

Commit

Permalink
fix NPE in � for methods without a local variable table (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
radai-rosenblatt authored Jul 28, 2021
1 parent b5ad108 commit 77d1b72
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 77d1b72

Please sign in to comment.