Skip to content

Commit f944d36

Browse files
committed
Simplified condition
1 parent 3f99066 commit f944d36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/mastercard/developer/encryption/FieldLevelEncryption.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ private static void decryptPayloadPath(DocumentContext payloadContext, String js
225225

226226
// Remove the input if now empty
227227
Object inJsonElement = readJsonElement(payloadContext, jsonPathIn);
228-
if (inJsonElement != null && 0 == jsonProvider.length(inJsonElement) && !"$".equals(jsonPathIn)) {
228+
if (0 == jsonProvider.length(inJsonElement) && !"$".equals(jsonPathIn)) {
229229
payloadContext.delete(jsonPathIn);
230230
}
231231
}

0 commit comments

Comments
 (0)