OAI errror if property *.Search.Restriction is not set

Description

Method MCROAISolrSearcher.getEarliestTimestamp()
does not work if the Property ...Search.Restriction not set.

This leads to exception in identify and empty results for listIdentifiers / listRecords-Request

I would suggest to change the default value to ":"

2018-07-20T12:40:35,865 WARN guest MCROAIIdentify: Error occured while examining create date of first created object. Use default value.
java.lang.NullPointerException
at org.mycore.oai.MCROAICombinedSearcher.getEarliestTimestamp(MCROAICombinedSearcher.java:75)
at org.mycore.oai.MCROAIIdentify.calculateEarliestTimestamp(MCROAIIdentify.java:136)
at org.mycore.oai.MCROAIIdentify.<init>(MCROAIIdentify.java:71)
at org.mycore.oai.MCROAIAdapter.getIdentify(MCROAIAdapter.java:139)
at org.mycore.oai.MCROAIAdapter.getIdentify(MCROAIAdapter.java:56)
at org.mycore.oai.pmh.dataprovider.jaxb.JAXBOAIProvider.handle(JAXBOAIProvider.java:52)
at org.mycore.oai.pmh.dataprovider.jaxb.JAXBOAIProvider.handleRequest(JAXBOAIProvider.java:43)

Environment

None

Status

Assignee

Robert Stephan

Reporter

Robert Stephan

Labels

None

URL

None

External issue ID

None

Components

Fix versions

Affects versions

Priority

Medium
Configure