GP-0 allow use of null for global namespace

This commit is contained in:
ghidra1 2023-04-21 08:39:44 -04:00
parent 5ed7daf267
commit 7891d26115

View File

@ -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");
}