* @param in
* the input (the main resource)
*
- * @return the associated {@link MetaData}
+ * @return the associated {@link MetaData}, never NULL
*
* @throws IOException
* in case of I/O error
* @param pg
* the optional progress reporter
*
- * @return the {@link Story}
+ * @return the {@link Story}, never NULL
*
* @throws IOException
* in case of I/O error
* @param pg
* the optional progress reporter
*
- * @return the {@link Story}
+ * @return the {@link Story}, never NULL
*
* @throws IOException
* in case of I/O error
pgMeta.setProgress(pgMeta.getMax()); // 10%
}
- if (story == null) {
- pg.setProgress(90);
- return null;
- }
-
pg.setName("Retrieving " + story.getMeta().getTitle());
setCurrentReferer(url);
words += cc.getWords();
story.getChapters().add(cc);
- if (story.getMeta() != null) {
- story.getMeta().setWords(words);
- }
+ story.getMeta().setWords(words);
} finally {
if (chapIn != null) {
chapIn.close();