[
https://issues.apache.org/jira/browse/SENTRY-2563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17217837#comment-17217837
]
Sean Mackrory commented on SENTRY-2563:
---------------------------------------
Be sure to run `mvn test` on your patches. There's a policy against using
ternary operators that's being flagged here.
> 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
>
>
> if numPrivs is null, comparing it to zero will throw npe.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)