cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1330951 - /cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentDataSource.java
Date Thu, 26 Apr 2012 16:50:14 GMT
Author: dkulp
Date: Thu Apr 26 16:50:14 2012
New Revision: 1330951

URL: http://svn.apache.org/viewvc?rev=1330951&view=rev
Log:
Merged revisions 1330945 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1330945 | dkulp | 2012-04-26 12:47:28 -0400 (Thu, 26 Apr 2012) | 2 lines

  [CXF-4267] Put an NPE guard in AttachmentDataSource

........

Modified:
    cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentDataSource.java

Modified: cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentDataSource.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentDataSource.java?rev=1330951&r1=1330950&r2=1330951&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentDataSource.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentDataSource.java
Thu Apr 26 16:50:14 2012
@@ -62,7 +62,9 @@ public class AttachmentDataSource implem
         cache.holdTempFile();
     }
     public void release() {
-        cache.releaseTempFileHold();
+        if (cache != null) {
+            cache.releaseTempFileHold();
+        }
     }
     
     public String getContentType() {



Mime
View raw message