Merge remote-tracking branch 'origin/dragonmacher-npe-scalar-hover' into Ghidra_9.1

This commit is contained in:
ghidravore 2019-09-20 16:06:05 -04:00
commit 81db4a3e8e

View file

@ -100,6 +100,9 @@ public class ScalarOperandListingHover extends AbstractScalarOperandHover
InstructionPrototype prototype = instruction.getPrototype(); InstructionPrototype prototype = instruction.getPrototype();
List<Object> list = List<Object> list =
prototype.getOpRepresentationList(opIndex, instruction.getInstructionContext()); prototype.getOpRepresentationList(opIndex, instruction.getInstructionContext());
if (list == null) {
return null;
}
return list.get(loc.getSubOperandIndex()); return list.get(loc.getSubOperandIndex());
} }