1
0
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:
Henschi
2025-04-03 20:49:54 +02:00
parent 5325670a8e
commit 332a42be72

@ -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();