myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r691022 - /myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/upload/FileUploadConfiguratorImpl.java
Date Mon, 01 Sep 2008 17:35:47 GMT
Author: matzew
Date: Mon Sep  1 10:35:47 2008
New Revision: 691022

URL: http://svn.apache.org/viewvc?rev=691022&view=rev
Log:
fixed NPE

Modified:
    myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/upload/FileUploadConfiguratorImpl.java

Modified: myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/upload/FileUploadConfiguratorImpl.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/upload/FileUploadConfiguratorImpl.java?rev=691022&r1=691021&r2=691022&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/upload/FileUploadConfiguratorImpl.java
(original)
+++ myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/upload/FileUploadConfiguratorImpl.java
Mon Sep  1 10:35:47 2008
@@ -179,7 +179,8 @@
     if(!ExternalContextUtils.isPortlet(externalContext))
     {
       UploadedFiles files = UploadedFiles.getUploadedFiles(externalContext);
-      files.dispose();
+      if(files != null)
+        files.dispose();
     }
   }
 



Mime
View raw message