Merge remote-tracking branch 'origin/GP-1809_Dan_fixWatchesNoTraceNPE'

(#4059)
This commit is contained in:
Ryan Kurtz 2022-03-16 13:23:16 -04:00
commit 11be93b401

View file

@ -576,10 +576,14 @@ public class DebuggerWatchesProvider extends ComponentProviderAdapter {
} }
private ProgramLocation getDynamicLocation(ProgramLocation someLoc) { private ProgramLocation getDynamicLocation(ProgramLocation someLoc) {
TraceProgramView view = current.getView();
if (view == null) {
return null;
}
if (someLoc.getProgram() instanceof TraceProgramView) { if (someLoc.getProgram() instanceof TraceProgramView) {
return someLoc; return someLoc;
} }
return mappingService.getDynamicLocationFromStatic(current.getView(), someLoc); return mappingService.getDynamicLocationFromStatic(view, someLoc);
} }
private AddressSetView getDynamicAddresses(Program program, AddressSetView set) { private AddressSetView getDynamicAddresses(Program program, AddressSetView set) {