mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-10-19 18:12:14 -09:00
GP-1905: Fix NPE when changing register-tracking setting in dynamic
listing.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user