mirror of
https://github.com/dedicatedcode/reitti.git
synced 2026-01-09 17:37:57 -05:00
Handle absent home block in memory generation (#389)
This commit is contained in:
committed by
GitHub
parent
b99240375b
commit
b61823b33c
@@ -240,9 +240,10 @@ public class MemoryBlockGenerationService {
|
||||
}
|
||||
|
||||
|
||||
MemoryClusterBlock clusterBlock = convertToTripCluster(tripsFromAccommodation, "Journey to " + home.get().getPlace().getCity());
|
||||
|
||||
blockParts.add(clusterBlock);
|
||||
if (home.isPresent()) {
|
||||
MemoryClusterBlock clusterBlock = convertToTripCluster(tripsFromAccommodation, "Journey to " + home.get().getPlace().getCity());
|
||||
blockParts.add(clusterBlock);
|
||||
}
|
||||
}
|
||||
|
||||
log.info("Generated {} memory block parts", blockParts.size());
|
||||
|
||||
Reference in New Issue
Block a user