diff --git a/Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/database/guest/DBTraceGuestPlatform.java b/Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/database/guest/DBTraceGuestPlatform.java index f71fea039c..0d989c4ef1 100644 --- a/Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/database/guest/DBTraceGuestPlatform.java +++ b/Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/database/guest/DBTraceGuestPlatform.java @@ -310,6 +310,9 @@ public class DBTraceGuestPlatform extends DBAnnotatedObject @Override public Address mapHostToGuest(Address hostAddress) { + if (hostAddress == null) { + return null; + } try (LockHold hold = LockHold.lock(manager.lock.readLock())) { Entry
floorEntry = rangesByHostAddress.floorEntry(hostAddress); @@ -322,6 +325,9 @@ public class DBTraceGuestPlatform extends DBAnnotatedObject @Override public AddressRange mapHostToGuest(AddressRange hostRange) { + if (hostRange == null) { + return null; + } try (LockHold hold = LockHold.lock(manager.lock.readLock())) { Entry floorEntry = rangesByHostAddress.floorEntry(hostRange.getMinAddress()); @@ -350,6 +356,9 @@ public class DBTraceGuestPlatform extends DBAnnotatedObject @Override public Address mapGuestToHost(Address guestAddress) { + if (guestAddress == null) { + return null; + } try (LockHold hold = LockHold.lock(manager.lock.readLock())) { Entry floorEntry = rangesByGuestAddress.floorEntry(guestAddress); @@ -362,6 +371,9 @@ public class DBTraceGuestPlatform extends DBAnnotatedObject @Override public AddressRange mapGuestToHost(AddressRange guestRange) { + if (guestRange == null) { + return null; + } try (LockHold hold = LockHold.lock(manager.lock.readLock())) { Entry floorEntry = rangesByGuestAddress.floorEntry(guestRange.getMinAddress());