NPE if object deleted, and storage deletion still not done
We have to fix the NPE if object has been deleted from elasticsearch index, but not from storage:
2023-07-05T15:07:37.580 DEBUG http-nio-8080-exec-3 crud.esdb.init() Extracted index name [dariah-public] and type [metadata] 2023-07-05T15:07:37.580 DEBUG http-nio-8080-exec-3 crud.esdb.init() Using existing ElasticSearch client: [9200] 2023-07-05T15:07:37.581 DEBUG http-nio-8080-exec-3 crud.esdb.init() Using existing ElasticSearch builder 2023-07-05T15:07:37.602 ERROR http-nio-8080-exec-3 crud.exception.toResponse() 500 Internal Server Error returned: caught NullPointerException: null
Throw some correct error instead of NPE!