Fix possible NPE when generating accessor comments

This commit is contained in:
Ben Gruver 2017-03-11 13:29:14 -08:00
parent 152250d900
commit 961c21be98

View File

@ -432,7 +432,8 @@ public class MethodDefinition {
});
}
if (classDef.options.accessorComments && (instruction instanceof ReferenceInstruction)) {
if (classDef.options.accessorComments && classDef.options.syntheticAccessorResolver != null &&
(instruction instanceof ReferenceInstruction)) {
Opcode opcode = instruction.getOpcode();
if (opcode.referenceType == ReferenceType.METHOD) {