Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-0: Fixing bad logic in ObjectiveC_Method.java

Ryan Kurtz2ca66f950531
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/objectiveC/ObjectiveC_Method.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/objectiveC/ObjectiveC_Method.java
index 75d0f338b5..cee719b855 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/objectiveC/ObjectiveC_Method.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/objectiveC/ObjectiveC_Method.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.
@@ -52,7 +51,7 @@ public abstract class ObjectiveC_Method implements StructConverter {
if (implementation == 0) {
return;
}
- if (getName() == null && getName().length() == 0) {
+ if (getName() == null || getName().length() == 0) {
return;
}