You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to bootstrap a repository can lead to a NullPointerException in RepositoryFactoryBeanSupport.getObject(…).
What happens:
RepositoryFactoryBean gets initialized in afterPropertiesSet()
Initialization requests the type from the MappingContext
MappingContext publishes an application event
ApplicationEventMulticaster looks up event listeners from the context
Bean lookup calls getObject(…) method on the RepositoryFactoryBean that is currently initialized. The repository field was not yet set therefore the call fails with an NPE