ACCUMULO-1891 sets errorcode to default if it is null during message lookup.
Signed-off-by: Christopher Tubbs <ctubb...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/268028f8 Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/268028f8 Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/268028f8 Branch: refs/heads/master Commit: 268028f8c17118208d45119ec26fc3e929a7f179 Parents: 1e96138 Author: Sean Busbey <bus...@clouderagovt.com> Authored: Wed Nov 13 16:15:10 2013 -0600 Committer: Christopher Tubbs <ctubb...@apache.org> Committed: Thu Nov 14 21:48:34 2013 -0500 ---------------------------------------------------------------------- .../apache/accumulo/core/client/AccumuloSecurityException.java | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/268028f8/src/core/src/main/java/org/apache/accumulo/core/client/AccumuloSecurityException.java ---------------------------------------------------------------------- diff --git a/src/core/src/main/java/org/apache/accumulo/core/client/AccumuloSecurityException.java b/src/core/src/main/java/org/apache/accumulo/core/client/AccumuloSecurityException.java index d1bb0cb..a8c3187 100644 --- a/src/core/src/main/java/org/apache/accumulo/core/client/AccumuloSecurityException.java +++ b/src/core/src/main/java/org/apache/accumulo/core/client/AccumuloSecurityException.java @@ -27,6 +27,9 @@ public class AccumuloSecurityException extends Exception { private static final long serialVersionUID = 1L; private static String getDefaultErrorMessage(SecurityErrorCode errorcode) { + if (null == errorcode) { + errorcode = SecurityErrorCode.DEFAULT_SECURITY_ERROR; + } switch (errorcode) { case BAD_CREDENTIALS: return "Username or Password is Invalid";