directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [3/3] directory-kerby git commit: Avoid throwing NPE
Date Thu, 28 Jul 2016 14:44:38 GMT
Avoid throwing NPE


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/67d67c91
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/67d67c91
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/67d67c91

Branch: refs/heads/trunk
Commit: 67d67c9165da21a255a8067a1c3e3ca42de55dd9
Parents: ab8fa35
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Thu Jul 28 14:57:42 2016 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Thu Jul 28 14:57:42 2016 +0100

----------------------------------------------------------------------
 .../org/apache/kerby/kerberos/kerb/common/PrivateKeyReader.java  | 4 ----
 1 file changed, 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/67d67c91/kerby-kerb/kerb-common/src/main/java/org/apache/kerby/kerberos/kerb/common/PrivateKeyReader.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-common/src/main/java/org/apache/kerby/kerberos/kerb/common/PrivateKeyReader.java
b/kerby-kerb/kerb-common/src/main/java/org/apache/kerby/kerberos/kerb/common/PrivateKeyReader.java
index c4c6273..a3a7a4e 100644
--- a/kerby-kerb/kerb-common/src/main/java/org/apache/kerby/kerberos/kerb/common/PrivateKeyReader.java
+++ b/kerby-kerb/kerb-common/src/main/java/org/apache/kerby/kerberos/kerb/common/PrivateKeyReader.java
@@ -50,8 +50,6 @@ public class PrivateKeyReader {
             return loadPrivateKey(sb.toString());
         } catch (IOException e) {
             throw e;
-        } catch (NullPointerException e) {
-            throw e;
         }
     }
 
@@ -66,8 +64,6 @@ public class PrivateKeyReader {
             throw e;
         } catch (InvalidKeySpecException e) {
             throw e;
-        } catch (NullPointerException e) {
-            throw e;
         }
     }
 


Mime
View raw message