Use lazy group creator.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 19 Apr 2012 14:31:40 +0000 (16:31 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 19 Apr 2012 14:31:40 +0000 (16:31 +0200)
src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java

index 374bb6c..d8b9d62 100644 (file)
@@ -128,7 +128,7 @@ public class DataManager {
                query.addField(new Field("GROUPS.*"));
                query.addJoin(new Join(JoinType.INNER, "GROUP_ARTISTS", new Field("GROUPS.ID"), new Field("GROUP_ARTISTS.GROUP_")));
                query.addWhereClause(new ValueFieldWhereClause(new ValueField("GROUP_ARTISTS.ARTIST", new StringParameter(artistId))));
-               return database.getMultiple(query, DefaultGroup.CREATOR);
+               return database.getMultiple(query, groupCreator);
        }
 
        private class TrackLoader implements ResultProcessor {