You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Qian Chen (Jira)" <ji...@apache.org> on 2019/11/13 13:46:00 UTC

[jira] [Created] (OAK-8762) Several potential NullPointerException bugs

Qian Chen created OAK-8762:
------------------------------

             Summary: 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


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)