Ghidra is a software reverse engineering (SRE) framework
GP-1413: Tweaks to PR
Ryan Kurtzb32c1d27e3e3
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/objc2/ObjectiveC2_Category.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/objc2/ObjectiveC2_Category.javaindex f927120769..f7dc4877cb 100644--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/objc2/ObjectiveC2_Category.java+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/objc2/ObjectiveC2_Category.java@@ -1,6 +1,5 @@/* ###* IP: GHIDRA- * REVIEWED: YES** Licensed under the Apache License, Version 2.0 (the "License");* you may not use this file except in compliance with the License.@@ -16,6 +15,8 @@*/package ghidra.app.util.bin.format.objc2;+import java.io.IOException;+import ghidra.app.util.bin.BinaryReader;import ghidra.app.util.bin.StructConverter;import ghidra.app.util.bin.format.objectiveC.*;@@ -24,8 +25,6 @@ import ghidra.program.model.data.*;import ghidra.program.model.symbol.Namespace;import ghidra.util.exception.DuplicateNameException;-import java.io.IOException;-public class ObjectiveC2_Category implements StructConverter {public final static String NAME = "category_t";@@ -45,12 +44,12 @@ public class ObjectiveC2_Category implements StructConverter {readName(reader);readClass(reader);- if (cls.getISA() == null)- return;- readInstanceMethods(reader);- readClassMethods(reader);- readProtocols(reader);- readInstanceProperties(reader);+ if (cls != null && cls.getISA() != null) {+ readInstanceMethods(reader);+ readClassMethods(reader);+ readProtocols(reader);+ readInstanceProperties(reader);+ }}public long getIndex() {