Skip to content

Commit

Permalink
removed possible null-pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
dghgit committed Aug 29, 2016
1 parent cdc6e9a commit 15a45d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ protected void engineInit(
//
if (!(key instanceof SecretKey))
{
throw new InvalidKeyException("Key for algorithm " + key.getAlgorithm() + " not suitable for symmetric enryption.");
throw new InvalidKeyException("Key for algorithm " + ((key != null) ? key.getAlgorithm() : null) + " not suitable for symmetric enryption.");
}

//
Expand Down

0 comments on commit 15a45d2

Please sign in to comment.