GP-1905: Fix NPE when changing register-tracking setting in dynamic

listing.
This commit is contained in:
Dan 2022-04-14 17:30:49 -04:00
parent 5828743fc2
commit 78d3e8d3ab

View file

@ -191,8 +191,11 @@ public class DebuggerTrackLocationTrait {
}
public void setSpec(LocationTrackingSpec spec) {
// TODO: What if action == null?
if (action != null) {
if (action == null) {
// It might if the client doesn't need a new button, e.g., TraceDiff
doSetSpec(spec);
}
else {
action.setCurrentActionStateByUserData(spec);
}
}