Skip to content

Commit

Permalink
MOR-97 : Biometrics null check added
Browse files Browse the repository at this point in the history
  • Loading branch information
Monobikash Das authored and Monobikash Das committed Jun 14, 2021
1 parent 124d48f commit c6ac51f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static ContainerInfoDto getBiometricContainerInfo(Map<String, String> key
// String processStr = str[1].substring(processInitial.length());

Optional<ContainerInfoDto> isSourcePresent = infoResponseDto.getInfo().stream().filter(info -> info.getSource().equalsIgnoreCase(sourceStr) ?
info.getBiometrics().stream().filter(bio -> (
info.getBiometrics() != null && info.getBiometrics().stream().filter(bio -> (
StringUtils.isNotEmpty(bio.getType()) && bio.getType().equalsIgnoreCase(finalTypeSubtype)) ||
(!CollectionUtils.isEmpty(bio.getSubtypes()) && bio.getSubtypes().contains(finalTypeSubtype))).findAny().isPresent() : false).findAny();
// if source is present then get from that source or else continue searching
Expand Down

0 comments on commit c6ac51f

Please sign in to comment.