[ https://issues.apache.org/jira/browse/SENTRY-2563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17218033#comment-17218033 ]
Zhihua Deng commented on SENTRY-2563: ------------------------------------- Thanks much for pointing it out. I removed the ternary operators and ran the tests successfully on my local machine. > Fix NPE on numPrivs > 0 in SentryStore > -------------------------------------- > > Key: SENTRY-2563 > URL: https://issues.apache.org/jira/browse/SENTRY-2563 > Project: Sentry > Issue Type: Bug > Reporter: Zhihua Deng > Priority: Major > Attachments: SENTRY-2563.001.patch, SENTRY-2563.002.patch > > > if numPrivs is null, comparing it to zero will throw npe. -- This message was sent by Atlassian Jira (v8.3.4#803005)