Skip to content

Commit 59ef363

Browse files
committed
GP-5216 Corrected FunctionDefinitionDataType.setCallingConvention bug
1 parent a968e67 commit 59ef363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/FunctionDefinitionDataType.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public void setCallingConvention(String conventionName) throws InvalidInputExcep
189189

190190
if (GenericCallingConvention
191191
.getGenericCallingConvention(conventionName) == GenericCallingConvention.unknown &&
192-
!dataMgr.getKnownCallingConventionNames().contains(name)) {
192+
(dataMgr == null || !dataMgr.getKnownCallingConventionNames().contains(name))) {
193193
throw new InvalidInputException("Unknown calling convention name: " + conventionName);
194194
}
195195

0 commit comments

Comments
 (0)