Skip to content

Commit 2068f0a

Browse files
SK-2200: updated token format validation
1 parent 78bb7de commit 2068f0a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/skyflow/utils/validations/Validations.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ public static void validateDeidentifyFileRequest(DeidentifyFileRequest request)
789789
}
790790

791791
TokenFormat tokenFormat = request.getTokenFormat();
792-
if (tokenFormat.getVaultToken() != null && !tokenFormat.getVaultToken().isEmpty()) {
792+
if (tokenFormat != null && tokenFormat.getVaultToken() != null && !tokenFormat.getVaultToken().isEmpty()) {
793793
throw new SkyflowException(ErrorCode.INVALID_INPUT.getCode(), ErrorMessage.VaultTokenFormatIsNotAllowedForFiles.getMessage());
794794
}
795795

0 commit comments

Comments
 (0)