Skip to content

Commit

Permalink
Fixing NPE (MID-3399)
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed May 24, 2017
1 parent 8188cf5 commit 1fec92f
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -43,6 +43,9 @@ public ProtectedStringType() {
@Override
public byte[] getClearBytes() {
String clearValue = getClearValue();
if (clearValue == null) {
return null;
}
try {
// We want fixed charset here, independent of locale. We want consistent and portable encryption/decryption.
return clearValue.getBytes(CHARSET);
Expand Down

0 comments on commit 1fec92f

Please sign in to comment.