mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-30 16:11:46 +08:00
Fixing an NPE in tests.
This commit is contained in:
+5
-2
@@ -664,8 +664,11 @@ public class DebuggerListingProviderTest extends AbstractGhidraHeadedDebuggerGUI
|
|||||||
assertArrayEquals(zero, buf.array());
|
assertArrayEquals(zero, buf.array());
|
||||||
|
|
||||||
runSwing(() -> goToDyn(addr(trace, 0x55551800)));
|
runSwing(() -> goToDyn(addr(trace, 0x55551800)));
|
||||||
waitForPass(() -> assertEquals(addr(trace, 0x55551800),
|
waitForPass(() -> {
|
||||||
listingProvider.getLocation().getAddress()));
|
ProgramLocation location = listingProvider.getLocation();
|
||||||
|
assertNotNull(location);
|
||||||
|
assertEquals(addr(trace, 0x55551800), location.getAddress());
|
||||||
|
});
|
||||||
waitForDomainObject(trace);
|
waitForDomainObject(trace);
|
||||||
buf.clear();
|
buf.clear();
|
||||||
assertEquals(data.length,
|
assertEquals(data.length,
|
||||||
|
|||||||
Reference in New Issue
Block a user