diff --git a/baksmali/src/main/java/org/jf/baksmali/Adaptors/MethodDefinition.java b/baksmali/src/main/java/org/jf/baksmali/Adaptors/MethodDefinition.java index 9332111b..8161fe49 100644 --- a/baksmali/src/main/java/org/jf/baksmali/Adaptors/MethodDefinition.java +++ b/baksmali/src/main/java/org/jf/baksmali/Adaptors/MethodDefinition.java @@ -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) {