cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [2/6] cxf git commit: NPE fix
Date Tue, 28 Apr 2015 10:52:36 GMT
NPE fix


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/81aced6d
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/81aced6d
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/81aced6d

Branch: refs/heads/3.0.x-fixes
Commit: 81aced6db7443a9bc3fa331af207a39c162b5715
Parents: 2b90127
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Mon Apr 27 15:35:51 2015 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Mon Apr 27 16:40:24 2015 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/cxf/rs/security/jose/jwk/JwkUtils.java   | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/81aced6d/rt/rs/security/jose/src/main/java/org/apache/cxf/rs/security/jose/jwk/JwkUtils.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/jose/src/main/java/org/apache/cxf/rs/security/jose/jwk/JwkUtils.java
b/rt/rs/security/jose/src/main/java/org/apache/cxf/rs/security/jose/jwk/JwkUtils.java
index 70f534d..241fe6b 100644
--- a/rt/rs/security/jose/src/main/java/org/apache/cxf/rs/security/jose/jwk/JwkUtils.java
+++ b/rt/rs/security/jose/src/main/java/org/apache/cxf/rs/security/jose/jwk/JwkUtils.java
@@ -236,6 +236,9 @@ public final class JwkUtils {
         if (keyStoreLoc != null) {
             try {
                 InputStream is = ResourceUtils.getResourceStream(keyStoreLoc, bus);
+                if (is == null) {
+                    throw new SecurityException("Error in loading keystore location: " +
keyStoreLoc);
+                }
                 keyContent = IOUtils.readStringFromStream(is);
             } catch (Exception ex) {
                 throw new SecurityException(ex);


Mime
View raw message