[ 
https://issues.apache.org/jira/browse/OAK-8762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17091306#comment-17091306
 ] 

Angela Schreiber commented on OAK-8762:
---------------------------------------

[~JulyChen728], you didn't select a component so the issue might have gone 
unnoticed. please note that as far as i can see you spotted potential NPEs in 
test code. i don't think that qualifies as a major bug. @thomasm, wdyt?

> Several potential NullPointerException bugs
> -------------------------------------------
>
>                 Key: OAK-8762
>                 URL: https://issues.apache.org/jira/browse/OAK-8762
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: query
>            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)

Reply via email to