Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Federation initialization order incorrect when loaded from repository manager: NPE in filter evaluation #1990
On the mailing list it was reported that certain queries run into an NPE, showing up as
Analysing this deeply it turns out that this is due to an incorrect initialization order in an environment where the federation is created through a RepositoryManager (e.g. in a RDF4J workbench).
The issue is that the federation manager (and thus access to the strategy) is only initialized after the endpoints are initialized. In this environment the endpoint thus has a null reference to the evaluation strategy.
…nvironment Due to a wrong initialization order in an environment where the federation is initialized through a RepositoryManager, references to the evaluation strategy instance are not available in the Endpoint. This in turn caused an NPE in the filter evaluation. This change fixes the issue by first initializing the manager, and only after that the federation members.