mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GP-2387: Fix NPE when trying to sync while closing Debugger
This commit is contained in:
parent
80d9d1dc88
commit
2640a07838
1 changed files with 6 additions and 4 deletions
|
@ -196,7 +196,7 @@ public class DebuggerStaticSyncTrait {
|
|||
}
|
||||
|
||||
protected void doSyncCursorIntoStatic(ProgramLocation location) {
|
||||
if (location == null) {
|
||||
if (location == null || mappingService == null) {
|
||||
return;
|
||||
}
|
||||
ProgramLocation staticLoc = mappingService.getStaticLocationFromDynamic(location);
|
||||
|
@ -208,7 +208,7 @@ public class DebuggerStaticSyncTrait {
|
|||
|
||||
protected void doSyncCursorFromStatic() {
|
||||
TraceProgramView view = current.getView(); // NB. Used for snap (don't want emuSnap)
|
||||
if (view == null || currentStaticLocation == null) {
|
||||
if (view == null || currentStaticLocation == null || mappingService == null) {
|
||||
return;
|
||||
}
|
||||
ProgramLocation dynamicLoc =
|
||||
|
@ -246,7 +246,8 @@ public class DebuggerStaticSyncTrait {
|
|||
}
|
||||
|
||||
protected ProgramSelection doSyncSelectionIntoStatic(Program program, ProgramSelection sel) {
|
||||
if (program == null || sel == null || currentStaticProgram == null) {
|
||||
if (program == null || sel == null || currentStaticProgram == null ||
|
||||
mappingService == null) {
|
||||
return null;
|
||||
}
|
||||
TraceProgramView view = (TraceProgramView) program;
|
||||
|
@ -269,7 +270,8 @@ public class DebuggerStaticSyncTrait {
|
|||
|
||||
protected ProgramSelection doSyncSelectionFromStatic() {
|
||||
TraceProgramView view = current.getView();
|
||||
if (view == null || currentStaticProgram == null || currentStaticSelection == null) {
|
||||
if (view == null || currentStaticProgram == null || currentStaticSelection == null ||
|
||||
mappingService == null) {
|
||||
return null;
|
||||
}
|
||||
AddressSet mapped =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue