mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Fix equals bugs which do not work due to the wrong classes being compared
This commit is contained in:
@@ -57,9 +57,7 @@ public abstract class AbstractFridaCommand<T> implements FridaCommand<T> {
|
||||
@Override
|
||||
public boolean handle(FridaEvent<?> evt, FridaPendingCommand<?> pending) {
|
||||
if (evt instanceof FridaCommandDoneEvent) {
|
||||
if (pending.getCommand().equals(((FridaCommandDoneEvent) evt).getCmd())) {
|
||||
return true;
|
||||
}
|
||||
return pending.getCommand().equals(((FridaCommandDoneEvent) evt).getCmd());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -117,8 +115,9 @@ public abstract class AbstractFridaCommand<T> implements FridaCommand<T> {
|
||||
} else {
|
||||
manager.getEventListeners().fire.consoleOutput(object+"\n", 0);
|
||||
}
|
||||
if (res.equals("[]")) {
|
||||
if ("[]".equals(res.toString())) {
|
||||
Msg.error(this, "nothing returned for "+this);
|
||||
return;
|
||||
}
|
||||
if (res instanceof JsonArray) {
|
||||
JsonArray arr = (JsonArray) res;
|
||||
|
||||
Reference in New Issue
Block a user