GP-6746 Corrected NPE in Function Editor on Apply

This commit is contained in:
ghidra1
2026-04-22 11:20:00 -04:00
parent 1bf1260966
commit 027521316f

View File

@@ -822,11 +822,7 @@ public class FunctionEditorModel {
for (ParamInfo paramInfo : functionData.getParameters()) {
Parameter param = function.getParameter(paramInfo.getOrdinal());
if (param != null) {
if (param.getSymbol().isDeleted()) {
// concurrent removal of param - must do full update
break;
}
if (param != null && !param.isAutoParameter()) {
param.setName(paramInfo.getName(), SourceType.USER_DEFINED);
}
}
@@ -860,11 +856,7 @@ public class FunctionEditorModel {
: FunctionUpdateType.DYNAMIC_STORAGE_FORMAL_PARAMS,
true, sigSource);
}
catch (DuplicateNameException e) {
Msg.showError(this, null, "Function Edit Error", e.getMessage());
return false;
}
catch (InvalidInputException e) {
catch (Exception e) {
Msg.showError(this, null, "Function Edit Error", e.getMessage());
return false;
}