fix NPE on viewfile of url not in index

pull/1/head
reger 10 years ago
parent 9bf0d7ecb9
commit 66d0b5046a

@ -376,8 +376,8 @@ public class ViewFile {
prop.put("showSnippet_teasertext", desc);
prop.put("showSnippet", 1);
}
// update index with parsed resouce if index entry is older
if (urlEntry.loaddate().before(response.lastModified())) {
// update index with parsed resouce if index entry is older or missing
if (urlEntry == null || urlEntry.loaddate().before(response.lastModified())) {
Switchboard.getSwitchboard().toIndexer(response);
}
if (document != null) document.close();

Loading…
Cancel
Save