myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r691023 - /myfaces/trinidad/trunk_1.2.x/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/upload/FileUploadConfiguratorImpl.java
Date Mon, 01 Sep 2008 17:36:22 GMT
Author: matzew
Date: Mon Sep  1 10:36:22 2008
New Revision: 691023

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

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

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



Mime
View raw message