Skip to content

Commit

Permalink
Merge pull request #1008 from MonobikashDas/1.1.5.2
Browse files Browse the repository at this point in the history
MOR-97 : Biometrics null check added
  • Loading branch information
gsasikumar authored Jun 15, 2021
2 parents 9d172cf + c6ac51f commit 05a7947
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 05a7947

Please sign in to comment.