GP-3718: Fix NPE when assigning watch types with no trace.

This commit is contained in:
Dan
2023-08-08 08:37:19 -04:00
parent 379ddbfc39
commit 030fad284d

View File

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