diff --git a/src/main/java/smithereen/storage/GroupStorage.java b/src/main/java/smithereen/storage/GroupStorage.java index 45cbaaa7..2bbd5157 100644 --- a/src/main/java/smithereen/storage/GroupStorage.java +++ b/src/main/java/smithereen/storage/GroupStorage.java @@ -391,8 +391,8 @@ public static Map getById(Collection _ids) throws SQLEx } } synchronized(GroupStorage.class){ - for(int id:ids){ - putIntoCache(result.get(id)); + for(Group g:result.values()){ + putIntoCache(g); } } return result;