cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject [cxf] branch 3.1.x-fixes updated: [CXF-7504] Avoiding NPE
Date Fri, 15 Sep 2017 15:31:51 GMT
This is an automated email from the ASF dual-hosted git repository.

sergeyb pushed a commit to branch 3.1.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/3.1.x-fixes by this push:
     new 2f1fe0b  [CXF-7504] Avoiding NPE
2f1fe0b is described below

commit 2f1fe0b6f11b556b1923e433d83ede958f2c5fa1
Author: Sergey Beryozkin <sberyozkin@gmail.com>
AuthorDate: Fri Sep 15 16:30:41 2017 +0100

    [CXF-7504] Avoiding NPE
---
 .../src/main/java/org/apache/cxf/rs/security/jose/jwe/JweUtils.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwe/JweUtils.java
b/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwe/JweUtils.java
index 5d3f523..4617934 100644
--- a/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwe/JweUtils.java
+++ b/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwe/JweUtils.java
@@ -361,7 +361,7 @@ public final class JweUtils {
         }
     }
     public static JweEncryptionProvider loadEncryptionProvider(boolean required) {
-        return loadEncryptionProvider(null, required);
+        return loadEncryptionProvider(new JweHeaders(), required);
     }
     
     public static JweEncryptionProvider loadEncryptionProvider(JweHeaders headers, boolean
required) {

-- 
To stop receiving notification emails like this one, please contact
['"commits@cxf.apache.org" <commits@cxf.apache.org>'].

Mime
View raw message