rameeshm commented on code in PR #694:
URL: https://github.com/apache/ranger/pull/694#discussion_r2395198961
##########
agents-common/src/main/java/org/apache/ranger/authorization/utils/JsonUtils.java:
##########
@@ -279,7 +279,7 @@ public static List<RangerGdsMaskInfo>
jsonToListGdsMaskInfo(String jsonStr) {
try {
return getMapper().readValue(jsonStr,
TYPE_LIST_RANGER_GDS_MASK_INFO);
} catch (Exception e) {
- LOG.error("Cannot get Map<String, RangerPolicyItemDataMaskInfo>
from {}", jsonStr, e);
+ LOG.error("Cannot get List<RangerGdsMaskInfo> from {}", jsonStr,
e);
Review Comment:
Should there be null check on this "if (StringUtils.isNotEmpty(jsonStr)) "
and then do readValue to avoid excetion?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]