GT-3223_emteere code review changes

This commit is contained in:
emteere 2019-10-09 16:11:35 -04:00
parent 9c3ae59860
commit 136c41c027
2 changed files with 22 additions and 3 deletions

View file

@ -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) {