mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-22 12:11:55 +00:00
GP-0 allow use of null for global namespace
This commit is contained in:
parent
5ed7daf267
commit
7891d26115
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user