mirror of
https://github.com/yacy/yacy_search_server.git
synced 2025-07-19 08:44:42 -04:00
prevent NPE because summaryInfo.getTitle can returned null
This commit is contained in:
@ -86,7 +86,7 @@ public class pptParser extends AbstractParser implements Parser {
|
||||
final String contents = pptExtractor.getText().trim();
|
||||
|
||||
String title = summaryInfo == null ? "" : summaryInfo.getTitle();
|
||||
if (title.length() == 0) {
|
||||
if (title == null || title.length() == 0) {
|
||||
title = contents.replaceAll("\r"," ").replaceAll("\n"," ").replaceAll("\t"," ").trim();
|
||||
if (title.length() > 80) title = title.substring(0, 80);
|
||||
int l = title.length();
|
||||
|
Reference in New Issue
Block a user