Buggy code:
public class RequestContext { public static final String DEFAULT_THEME_NAME = "theme" ; public static final String WEB_APPLICATION_CONTEXT_ATTRIBUTE = ( RequestContext . class . getName ( ) ) + ".CONTEXT" ; protected static final boolean jstlPresent = ClassUtils . isPresent ( "javax.servlet.jsp.jstl.core.Config" , RequestContext . class . getClassLoader ( ) ) ; private HttpServletRequest request ; private HttpServletResponse response ; private Map < String , Object > model ; private WebApplicationContext webApplicationContext ; private Locale locale ; private Theme theme ; private Boolean defaultHtmlEscape ; private UrlPathHelper urlPathHelper ; private Map < String , Errors > errorsMap ; public RequestContext ( HttpServletRequest request ) { } public RequestContext ( HttpServletRequest request , ServletContext servletContext ) { } public RequestContext ( HttpServletRequest request , Map < String , Object > model ) { } public RequestContext ( HttpServletRequest request , HttpServletResponse response , ServletContext servletContext , Map < String , Object > model ) { } protected RequestContext ( ) { } protected void initContext ( HttpServletRequest request , HttpServletResponse response , ServletContext servletContext , Map < String , Object > model ) { } protected Locale getFallbackLocale ( ) { } protected Theme getFallbackTheme ( ) { } protected final HttpServletRequest getRequest ( ) { } protected final ServletContext getServletContext ( ) { } public final WebApplicationContext getWebApplicationContext ( ) { } public final MessageSource getMessageSource ( ) { } public final Map < String , Object > getModel ( ) { } public final Locale getLocale ( ) { } public final Theme getTheme ( ) { } public void setDefaultHtmlEscape ( boolean defaultHtmlEscape ) { } public boolean isDefaultHtmlEscape ( ) { <START_BUG> return ( ( this . defaultHtmlEscape ) != null ) && ( this . defaultHtmlEscape ) ; <END_BUG> } public Boolean getDefaultHtmlEscape ( ) { } public void setUrlPathHelper ( UrlPathHelper urlPathHelper ) { } public UrlPathHelper getUrlPathHelper ( ) { } public String getContextPath ( ) { } public String getContextUrl ( String relativeUrl ) { } public String getRequestUri ( ) { } public String getQueryString ( ) { } public String getMessage ( String code , String defaultMessage ) { } public String getMessage ( String code , Object [ ] args , String defaultMessage ) { } public String getMessage ( String code , List args , String defaultMessage ) { } public String getMessage ( String code , Object [ ] args , String defaultMessage , boolean htmlEscape ) { } public String getMessage ( String code ) throws NoSuchMessageException { } public String getMessage ( String code , Object [ ] args ) throws NoSuchMessageException { } public String getMessage ( String code , List args ) throws NoSuchMessageException { } public String getMessage ( String code , Object [ ] args , boolean htmlEscape ) throws NoSuchMessageException { } public String getMessage ( MessageSourceResolvable resolvable ) throws NoSuchMessageException { } public String getMessage ( MessageSourceResolvable resolvable , boolean htmlEscape ) throws NoSuchMessageException { } public String getThemeMessage ( String code , String defaultMessage ) { } public String getThemeMessage ( String code , Object [ ] args , String defaultMessage ) { } public String getThemeMessage ( String code , List args , String defaultMessage ) { } public String getThemeMessage ( String code ) throws NoSuchMessageException { } public String getThemeMessage ( String code , Object [ ] args ) throws NoSuchMessageException { } public String getThemeMessage ( String code , List args ) throws NoSuchMessageException { } public String getThemeMessage ( MessageSourceResolvable resolvable ) throws NoSuchMessageException { } public Errors getErrors ( String name ) { } public Errors getErrors ( String name , boolean htmlEscape ) { } protected Object getModelObject ( String modelName ) { } public BindStatus getBindStatus ( String path ) throws IllegalStateException { } public BindStatus getBindStatus ( String path , boolean htmlEscape ) throws IllegalStateException { } private static class JstlLocaleResolver { public static Locale getJstlLocale ( HttpServletRequest request , ServletContext servletContext ) { } } }

Fix:
return ( ( this . defaultHtmlEscape ) != null ) && ( this . defaultHtmlEscape . booleanValue ( ) ) ;