Skip to content

Commit

Permalink
Fixing error if database is not encrypted.
Browse files Browse the repository at this point in the history
  • Loading branch information
softwaremagico committed May 10, 2024
1 parent ed970c1 commit 6737934
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ public String decrypt(String encrypted, String password) throws InvalidEncryptio
} catch (BadPaddingException | IllegalBlockSizeException | InvalidAlgorithmParameterException
| InvalidKeyException e) {
throw new InvalidEncryptionException(e);
} catch (StringIndexOutOfBoundsException e) {
return null;
}
}

Expand Down

0 comments on commit 6737934

Please sign in to comment.