[ https://issues.apache.org/jira/browse/RANGER-3136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17269048#comment-17269048 ]
Mahesh Hanumant Bandal commented on RANGER-3136: ------------------------------------------------ [~rujia1019] - As per the image that you have shared, I can see that "if" condition is missing null check for filter.getParams() in your code. Please refer to this line of code which seems to be missing in your code. [https://github.com/apache/ranger/blob/4ff1c7ea9984812ec2ea02910ff8bb9eb9003f9a/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java#L2536] {code:java} if(policies != null && filter != null && MapUtils.isNotEmpty(filter.getParams())) { {code} Please refer to this image - !ServiceDBStore-L2536.png|width=560,height=287! Please make sure you have latest code base from [ranger git repository|https://github.com/apache/ranger]. Thank you. CC : [~pradeep], [~mehul], [~vel] > NullPointException found when import policies form web side and "isOverride" > is selected > ---------------------------------------------------------------------------------------- > > Key: RANGER-3136 > URL: https://issues.apache.org/jira/browse/RANGER-3136 > Project: Ranger > Issue Type: Bug > Components: admin > Affects Versions: 2.1.0 > Reporter: rujia > Priority: Major > Fix For: 3.0.0 > > Attachments: > 0001-NUllPointException-occur-when-import-polices-anf-isO.patch, > ServiceDBStore-L2536.png, image-2021-01-21-11-26-15-996.png, > image-2021-01-21-11-27-05-887.png > > > i got NullPointException when i imported policies json file from rangeradmin > web, i selected "isOverride" flag, it is caused by RANGER-3064, serchFilter > will be null when do deletePolices. -- This message was sent by Atlassian Jira (v8.3.4#803005)