kermitt2 / grobid

A machine learning software for extracting information from scholarly documents
https://grobid.readthedocs.io
Apache License 2.0
3.6k stars 460 forks source link

Null pointer exception on absent copyright model in 0.8.1. image #1178

Closed pasha-pplx closed 3 weeks ago

pasha-pplx commented 1 month ago

Operating System and architecture (arm64, amd64, x86, etc.)

No response

What is your Java version

No response

Log and information

ERROR [2024-10-05 16:15:24,662] org.grobid.service.process.GrobidRestProcessFiles: An unexpected exception occurs. 
! java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "org.grobid.core.utilities.GrobidProperties.getGrobidEngineName(String)" is null
! at org.grobid.core.engines.HeaderParser.processingHeaderSection(HeaderParser.java:315)

Seems you need to inverse comparision there, something like "delft".equals(...getGrobidEngineName(...))

Further information

No response

lfoppiano commented 1 month ago

Hi @pasha-ppx, could you please provide more information about your problem? Basically answer the questions that were asked above. Without more information, I'm afraid we won't be able to help.