mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-1905: Fix NPE when changing register-tracking setting in dynamic
listing.
This commit is contained in:
parent
5828743fc2
commit
78d3e8d3ab
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue