cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1330945 - /cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentDataSource.java
Date Thu, 26 Apr 2012 16:47:28 GMT
Author: dkulp
Date: Thu Apr 26 16:47:28 2012
New Revision: 1330945

URL: http://svn.apache.org/viewvc?rev=1330945&view=rev
Log:
[CXF-4267] Put an NPE guard in AttachmentDataSource

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentDataSource.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentDataSource.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentDataSource.java?rev=1330945&r1=1330944&r2=1330945&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentDataSource.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentDataSource.java Thu Apr
26 16:47:28 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