mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
GP-0 allow use of null for global namespace
This commit is contained in:
parent
5ed7daf267
commit
7891d26115
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue