You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by co...@apache.org on 2016/07/28 14:44:38 UTC

[3/3] directory-kerby git commit: Avoid throwing NPE

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 <co...@apache.org>
Authored: Thu Jul 28 14:57:42 2016 +0100
Committer: Colm O hEigeartaigh <co...@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;
         }
     }