To obtain a reference to the DataTypeManagerService, the loadDataTypeLibrary function uses GhidraState.getTool(). This will be a null value when not running within the GUI environment.
This can be resolved by obtaining the datatype service from AutoAnalysisManager instead.
To obtain a reference to the
DataTypeManagerService
, theloadDataTypeLibrary
function usesGhidraState.getTool()
. This will be anull
value when not running within the GUI environment.This can be resolved by obtaining the datatype service from
AutoAnalysisManager
instead.The issue and work around is detailed here: https://github.com/NationalSecurityAgency/ghidra/issues/934