mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +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) {
|
protected TraceNamespaceSymbol assertTraceNamespace(Namespace ns) {
|
||||||
|
if (ns == null) {
|
||||||
|
return symbolManager.getGlobalNamespace();
|
||||||
|
}
|
||||||
if (!(ns instanceof TraceNamespaceSymbol)) {
|
if (!(ns instanceof TraceNamespaceSymbol)) {
|
||||||
throw new IllegalArgumentException("Given namespace is not part of this trace");
|
throw new IllegalArgumentException("Given namespace is not part of this trace");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue