Skip to content

Commit

Permalink
ClassCastException handled (#1412)
Browse files Browse the repository at this point in the history
Co-authored-by: Ashwin <[email protected]>
  • Loading branch information
AshwinPRJ and Ashwin authored Mar 29, 2023
1 parent 69804e6 commit 66e2c22
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ public void decryptSensitiveData() {
for (Value value : prepareValuesForEncryptDecrypt()) {
if (value.get() instanceof HashMap) {
HashMap<String, Value> map = (HashMap<String, Value>) value.get();
for (Value valueInMap : map.values()) {
if (valueInMap.isSensitive()) {
for (Serializable valueInMap : map.values()) {
if (valueInMap instanceof Value && ((Value) valueInMap).isSensitive()) {
((SensitiveValue) valueInMap).decrypt();
}
}
Expand All @@ -230,8 +230,8 @@ public void encryptSensitiveData() {
for (Value value : prepareValuesForEncryptDecrypt()) {
if (value.get() instanceof HashMap) {
HashMap<String, Value> map = (HashMap<String, Value>) value.get();
for (Value valueInMap : map.values()) {
if (valueInMap.isSensitive()) {
for (Serializable valueInMap : map.values()) {
if (valueInMap instanceof Value && ((Value) valueInMap).isSensitive()) {
((SensitiveValue) valueInMap).encrypt();
}
}
Expand Down

0 comments on commit 66e2c22

Please sign in to comment.