[
https://issues.apache.org/jira/browse/OAK-8762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16979164#comment-16979164
]
Qian Chen commented on OAK-8762:
--------------------------------
Hi, we have reported the bugs a while ago would you please take a look and
confirm if they are real bugs. We have been conducting an experiment to measure
the accuracy of our static checker. We would be deeply appreciated if you can
provide some feedback!
> Several potential NullPointerException bugs
> -------------------------------------------
>
> Key: OAK-8762
> URL: https://issues.apache.org/jira/browse/OAK-8762
> Project: Jackrabbit Oak
> Issue Type: Bug
> Reporter: Qian Chen
> Priority: Major
>
> Hi all,
> Our bug scanner has reported some NPE bugs.
> The bugs are caused by the
> {code:java}
> return null
> {code}
> in function
> [retrieve()|https://github.com/apache/jackrabbit-oak/tree/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/QueryLogAnalyzer.java#L155]
> Since the return value of the method retrieve() may be null , a NPE bug may
> take place in
> [retrieve()|https://github.com/apache/jackrabbit-oak/tree/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/QueryLogAnalyzer.java#L156]
> when the return value of the method retrieve() was [passed
> to|https://github.com/apache/jackrabbit-oak/tree/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/QueryLogAnalyzer.java#L63]
> the first parameter of the method retrieve() .
> And when the return value of the method retrieve() was [passed
> to|https://github.com/apache/jackrabbit-oak/tree/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/QueryLogAnalyzer.java#L64]
> the parameter of the method filterParams() , a NPE bug may also
> [occur|https://github.com/apache/jackrabbit-oak/tree/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/QueryLogAnalyzer.java#L137].
> Thanks.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)