Text extraction timeout can lead to NPE
Also fix in oak-seach module (test to be committed under
@@ -158,10 +158,13 @@ public class ExtractedTextCache {
if (EXTRACT_FORGET_TIMEOUT) {
return;
}
+
String id = blob.getContentIdentity();
+ if (id != null) {
timeoutMap.put(id, getText(extractedText));
storeTimeoutMap();
}
+ }
private static String getText(ExtractedText text) {
switch (text.getExtractionResult()) {
