In a unittest I stumbled across a crash in
context->GetServiceReference<someInterface>() because the implementation of 'someInterface' had not been registered in the unittest.
I had expected some exception to be thrown in this case, as was written in the documentation of "ServiceReference<S> mitk::ModuleContext::GetServiceReference()".
However, the code simply crashes in
ServiceReferenceBasePrivate::IsConvertibleTo( string ) as the internal 'registration' instance is NULL.
There should either be an invalid ServiceReference or an exception (better)...