- for (MetaData meta : stories) {
- GuiReaderBook book = new GuiReaderBook(reader, meta,
- reader.isCached(meta.getLuid()), seeWordcount);
+ for (GuiReaderBookInfo info : stories) {
+ boolean isCached = false;
+ if (info.getMeta() != null) {
+ isCached = reader.isCached(info.getMeta().getLuid());
+ }
+
+ GuiReaderBook book = new GuiReaderBook(reader, info, isCached,
+ seeWordcount);