You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Benedikt Lesch (JIRA)" <ji...@apache.org> on 2015/03/03 16:47:04 UTC

[jira] [Updated] (OLINGO-586) Filter substringof causes NullPointerException

     [ https://issues.apache.org/jira/browse/OLINGO-586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benedikt Lesch updated OLINGO-586:
----------------------------------
    Description: 
The expression methodFlag.get() == 1 in line 220  of
org.apache.olingo.odata2.jpa.processor.core.ODataExpressionParser
causes a NullPointerExcpetion.
methodFlag.get() is null at this point, the comparison to the int value causes 
an implicit call of methodFlag.get().intValue which causes the exception.

Edit: only occurs when "eq true" is missing after filter



  was:
The expression methodFlag.get() == 1 in line 220  of
org.apache.olingo.odata2.jpa.processor.core.ODataExpressionParser
causes a NullPointerExcpetion.
methodFlag.get() is null at this point, the comparison to the int value causes 
an implicit call of methodFlag.get().intValue which causes the exception.


> Filter substringof causes NullPointerException
> ----------------------------------------------
>
>                 Key: OLINGO-586
>                 URL: https://issues.apache.org/jira/browse/OLINGO-586
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-jpa
>    Affects Versions: V2 2.0.3
>            Reporter: Benedikt Lesch
>            Priority: Minor
>              Labels: easyfix
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> The expression methodFlag.get() == 1 in line 220  of
> org.apache.olingo.odata2.jpa.processor.core.ODataExpressionParser
> causes a NullPointerExcpetion.
> methodFlag.get() is null at this point, the comparison to the int value causes 
> an implicit call of methodFlag.get().intValue which causes the exception.
> Edit: only occurs when "eq true" is missing after filter



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)