String threadText = wgetReply[0];
String newLastMod = wgetReply[1];
Topic t = null;
TopicJson topicJson;
try {
topicJson = GSON.fromJson(threadText, TopicJson.class);
} catch(JsonSyntaxException ex) {
throw new ContentGetException("API returned invalid JSON", ex);
}
if(topicJson == null) {
throw new ContentParseException("API returned empty JSON in " + threadNum);
}
for(PostJson pj : topicJson.getPosts()) {
if(pj.getResto() == 0) {
if(t == null) {
t = this.makeThreadFromJson(pj);
t.setLastMod(newLastMod);
} else {