mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-0 allow use of null for global namespace
This commit is contained in:
@@ -74,6 +74,9 @@ public class DBTraceProgramViewSymbolTable implements SymbolTable {
|
||||
}
|
||||
|
||||
protected TraceNamespaceSymbol assertTraceNamespace(Namespace ns) {
|
||||
if (ns == null) {
|
||||
return symbolManager.getGlobalNamespace();
|
||||
}
|
||||
if (!(ns instanceof TraceNamespaceSymbol)) {
|
||||
throw new IllegalArgumentException("Given namespace is not part of this trace");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user