struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yasser Zamani <yasser.zam...@live.com>
Subject Re: Upgrading Struts 2.2.3 to 2.3.34
Date Thu, 12 Oct 2017 17:06:38 GMT


On 10/12/2017 4:03 PM, Ej Magdaluyo wrote:
>                 *if*(fileRequestWrapper!=*null*  &&fileRequestWrapper
> .getErrors()!=*null*){

I worked and found the bug :) the new version of MultiPartRequestWrapper 
instantiates it's `error` inside it's constructor. So you should rewrite 
above as:

if(fileRequestWrapper!=null && fileRequestWrapper.hasErrors()){

Hope this helps!
Yasser.
Mime
View raw message