Details
-
Bug
-
Resolution: Done
-
Minor
-
None
-
None
-
None
-
Low
Description
There is a wrong null check in the SpringContextLoader class. After the dispatcher is created the registry is checked for null and not the dispatcher object as it should be.
final Registry registry = (Registry) servletContext.getAttribute(Registry.class.getName());
if (registry == null)
throw new RuntimeException("RESTeasy Registry is null, do ou have the ResteasyBootstrap listener configured?");
final Dispatcher dispatcher = (Dispatcher) servletContext.getAttribute(Dispatcher.class.getName());
/* Should be if (dispatcher == null) */
if (registry == null)
throw new RuntimeException("RESTeasy Dispatcher is null, do ou have the ResteasyBootstrap listener configured?");