We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a968e67 commit 59ef363Copy full SHA for 59ef363
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/FunctionDefinitionDataType.java
@@ -189,7 +189,7 @@ public void setCallingConvention(String conventionName) throws InvalidInputExcep
189
190
if (GenericCallingConvention
191
.getGenericCallingConvention(conventionName) == GenericCallingConvention.unknown &&
192
- !dataMgr.getKnownCallingConventionNames().contains(name)) {
+ (dataMgr == null || !dataMgr.getKnownCallingConventionNames().contains(name))) {
193
throw new InvalidInputException("Unknown calling convention name: " + conventionName);
194
}
195
0 commit comments