mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
GT-3223_emteere code review changes
This commit is contained in:
parent
9c3ae59860
commit
136c41c027
2 changed files with 22 additions and 3 deletions
|
@ -309,9 +309,12 @@ public class MemoryMapDB implements Memory, ManagerDB, LiveMemoryListener {
|
|||
public synchronized MemoryBlock getBlock(String blockName) {
|
||||
// find block that might have been cached from previous call
|
||||
MemoryBlock memoryBlock = nameBlockMap.get(blockName);
|
||||
if (memoryBlock == NoBlock) {
|
||||
// found placeholder, have searched and found nothing before
|
||||
return null;
|
||||
if (memoryBlock != null) {
|
||||
if (memoryBlock == NoBlock) {
|
||||
// found placeholder, have searched and found nothing before
|
||||
return null;
|
||||
}
|
||||
return memoryBlock;
|
||||
}
|
||||
|
||||
for (MemoryBlock block : blocks) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue