JIRA Issue: KIEKER-599 Unconnected repository port can result in NullPointerException
Original Reporter: Nils Christian Ehmke
Using a plugin with repository port but without any connected repository can result in a NullPointerException. Assume following plugin in a valid KAX file:
Following code is executed during loading in the AC:
public final void connect(final AbstractPlugin plugin, final String repositoryPort, final AbstractRepository repository)
throws IllegalStateException, AnalysisConfigurationException {
...
// Make sure that the repository is registered.
if (!this.repos.contains(repository)) {
throw new AnalysisConfigurationException("The repository '" + repository.getName() + "' (" + repository.getRepositoryName() + ") is not registered.");
}
...
}
The call repository.getName() results in a NullPointerException. This should rather be an AnalysisConfigurationException (repository port not connected).
JIRA Issue: KIEKER-599 Unconnected repository port can result in NullPointerException Original Reporter: Nils Christian Ehmke
Using a plugin with repository port but without any connected repository can result in a NullPointerException. Assume following plugin in a valid KAX file:
Following code is executed during loading in the AC:
The call repository.getName() results in a NullPointerException. This should rather be an AnalysisConfigurationException (repository port not connected).
Checklist: