GP-5216 Corrected FunctionDefinitionDataType.setCallingConvention bug

This commit is contained in:
ghidra1 2024-12-27 16:20:10 -05:00
parent a968e6701e
commit 59ef363880

View file

@ -189,7 +189,7 @@ public class FunctionDefinitionDataType extends GenericDataType implements Funct
if (GenericCallingConvention
.getGenericCallingConvention(conventionName) == GenericCallingConvention.unknown &&
!dataMgr.getKnownCallingConventionNames().contains(name)) {
(dataMgr == null || !dataMgr.getKnownCallingConventionNames().contains(name))) {
throw new InvalidInputException("Unknown calling convention name: " + conventionName);
}