Program: 188149
Project: 188149
Buggy source:
protected void addViewResolvers(ViewResolverRegistry viewResolverRegistry,UpdatableInjectionContext injectionContext,GlobalModel globalModel){
  Router router=injectionContext.get(Router.class);
  ViewNegotiatorRegistry viewNegotiatorRegistry=injectionContext.get(ViewNegotiatorRegistry.class);
  HttpStatusExceptionViewResolver statusViewResolver=injectionContext.get(HttpStatusExceptionViewResolver.class);
  ExceptionViewResolver exceptionViewResolver=injectionContext.get(ExceptionViewResolver.class);
  NegotiatingViewResolver negotiatingViewResolver=new NegotiatingViewResolver(viewResolverRegistry,viewNegotiatorRegistry);
  injectionContext.inject(negotiatingViewResolver).as(NegotiatingViewResolver.class);
  GsonBuilder gsonBuilder=injectionContext.get(GsonBuilder.class);
  viewNegotiatorRegistry.setDefaultNegotiator(new JsonNegotiator());
  viewNegotiatorRegistry.addNegotiator(MimeTypes.MIME_APPLICATION_JSON,new JsonNegotiator());
  viewNegotiatorRegistry.addNegotiator(MimeTypes.MIME_APPLICATION_JAVASCRIPT,new JsonpNegotiator());
  viewResolverRegistry.addResolver(Throwable.class,exceptionViewResolver);
  viewResolverRegistry.addResolver(HttpStatusException.class,statusViewResolver);
  viewResolverRegistry.addResolver(RouteNotFoundException.class,new RouteNotFoundViewResolver());
  viewResolverRegistry.addResolver(RouteRedirectView.class,new RouteRedirectViewResolver(router));
  viewResolverRegistry.addResolver(RedirectView.class,new RedirectViewResolver());
  viewResolverRegistry.addResolver(JsonView.class,new JsonViewResolver(gsonBuilder));
  viewResolverRegistry.addResolver(JsonpView.class,new JsonpViewResolver(gsonBuilder));
  viewResolverRegistry.addResolver(FileView.class,new FileViewResolver());
  viewResolverRegistry.addResolver(StringView.class,new StringViewResolver());
  viewResolverRegistry.addResolver(NegotiatingView.class,negotiatingViewResolver);
}

Fixed version (ground truth):
protected void addViewResolvers(ViewResolverRegistry viewResolverRegistry,UpdatableInjectionContext injectionContext,GlobalModel globalModel){
  Router router=injectionContext.get(Router.class);
  ViewNegotiatorRegistry viewNegotiatorRegistry=injectionContext.get(ViewNegotiatorRegistry.class);
  HttpStatusExceptionViewResolver statusViewResolver=injectionContext.get(HttpStatusExceptionViewResolver.class);
  ExceptionViewResolver exceptionViewResolver=injectionContext.get(ExceptionViewResolver.class);
  NegotiatingViewResolver negotiatingViewResolver=new NegotiatingViewResolver(viewResolverRegistry,viewNegotiatorRegistry);
  injectionContext.inject(negotiatingViewResolver).as(NegotiatingViewResolver.class);
  GsonBuilder gsonBuilder=injectionContext.get(GsonBuilder.class);
  viewNegotiatorRegistry.setDefaultNegotiator(new JsonNegotiator());
  viewNegotiatorRegistry.addNegotiator(MimeTypes.MIME_APPLICATION_JSON,new JsonNegotiator());
  viewNegotiatorRegistry.addNegotiator(MimeTypes.MIME_APPLICATION_JAVASCRIPT,new JsonpNegotiator());
  viewResolverRegistry.addResolver(Throwable.class,exceptionViewResolver);
  viewResolverRegistry.addResolver(HttpStatusException.class,statusViewResolver);
  viewResolverRegistry.addResolver(RouteNotFoundException.class,new RouteNotFoundViewResolver(statusViewResolver));
  viewResolverRegistry.addResolver(RouteRedirectView.class,new RouteRedirectViewResolver(router));
  viewResolverRegistry.addResolver(RedirectView.class,new RedirectViewResolver());
  viewResolverRegistry.addResolver(JsonView.class,new JsonViewResolver(gsonBuilder));
  viewResolverRegistry.addResolver(JsonpView.class,new JsonpViewResolver(gsonBuilder));
  viewResolverRegistry.addResolver(FileView.class,new FileViewResolver());
  viewResolverRegistry.addResolver(StringView.class,new StringViewResolver());
  viewResolverRegistry.addResolver(NegotiatingView.class,negotiatingViewResolver);
}