When the method OpenAlexConnector.mentionDataByOpenalexIds is called with an empty collection, a wrongly formatted request is still made to the OpenAlex API, resulting in an error response from OpenAlex and an exception later on. We should check for an empty collection and return early in that case with an empty return value. We should also do this for other methods in that class and other classes.
When the method
OpenAlexConnector.mentionDataByOpenalexIds
is called with an empty collection, a wrongly formatted request is still made to the OpenAlex API, resulting in an error response from OpenAlex and an exception later on. We should check for an empty collection and return early in that case with an empty return value. We should also do this for other methods in that class and other classes.