ServiceRegistry#getService(...) throws NPE when service initiator returns null

Description

This is different from 5.1.x

`AbstractServiceRegistryImpl` stores initialized services in initializedServiceByRole.

In 5.1.x this class was an instance of ConcurrentServiceBinding and it's been changed to a ConcurrentHashMap. ConcurrentHashMap does not accept null as value.

In OGM, the existence of a service is configuration dependent, so the initiators might return null.

Environment

None

Status

Assignee

Andrea Boriero

Reporter

Davide D'Alto

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure