tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 62792] Race condition NullpointerException in JspServletWrapper
Date Tue, 02 Oct 2018 09:38:33 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=62792

--- Comment #2 from Julien B├ęti <julien@beti.name> ---
I would suggest to keep the "if(reload)" outside the synchronized block, and
check again inside with "getReloadInternal()"

Something like

if(reload) {
   synchronized (this) {
    if(getReloadInternal()) {
      //...
    }
  }
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message