mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-25 17:00:36 -09:00
GP-3718: Fix NPE when assigning watch types with no trace.
This commit is contained in:
@@ -280,6 +280,9 @@ public class DebuggerWatchesProvider extends ComponentProviderAdapter
|
||||
if (dataType == null) {
|
||||
return null;
|
||||
}
|
||||
if (currentTrace == null) {
|
||||
return dataType;
|
||||
}
|
||||
try (Transaction tx = currentTrace.openTransaction("Resolve DataType")) {
|
||||
return currentTrace.getDataTypeManager().resolve(dataType, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user