Description
Juan David Ortiz (Migrated from SEC-3036) said:
This is the relevant part of the stacktrace I'm getting after upgrading to Spring Security 4.0.1 and trying to use the new Websocket Security feature:
Caused by: java.lang.NullPointerException: null
at org.springframework.security.config.websocket.WebSocketMessageBrokerSecurityBeanDefinitionParser$MessageSecurityPostProcessor.postProcessBeanDefinitionRegistry(WebSocketMessageBrokerSecurityBeanDefinitionParser.java:233) ~[spring-security-config-4.0.1.RELEASE.jar:4.0.1.RELEASE]
This won't allow the application context to start.
I don't know if a BeanDefinition object can return null for its getBeanClassName method and still be valid. If yes, a null check is needed to ignore those beans and continue with the processing of the relevant ones.
Please verify and thanks in advance.