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

Michael Burwig updated OLINGO-941:
----------------------------------
    Description: 
Specifying a navigation property in a $select option can cause a 
{{NullPointerException}} due to the following line of code:
{code:title=ODataJPAResponseBuilderDefault.java|borderStyle=solid}
...
625  if (selectedItem.isStar() == false && 
selectedItem.getProperty().equals(keyProperty)) {
626    flag = false;
627    break;
628  }
...
{code}

  was:
Specifying a navigation property in a $select option can cause a 
{{NullPointerException}} due to the following line of code:
{code:title=ODataJPAResponseBuilderDefault.java|borderStyle=solid}
...
625  if (selectedItem.isStar() == false &&\ 
selectedItem.getProperty().equals(keyProperty)) {
626    flag = false;
627    break;
628  }
...
{code}


> Potential NullPointerException if Navigation Property in $select Option
> -----------------------------------------------------------------------
>
>                 Key: OLINGO-941
>                 URL: https://issues.apache.org/jira/browse/OLINGO-941
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-jpa
>    Affects Versions: V2 2.0.6
>            Reporter: Michael Burwig
>
> Specifying a navigation property in a $select option can cause a 
> {{NullPointerException}} due to the following line of code:
> {code:title=ODataJPAResponseBuilderDefault.java|borderStyle=solid}
> ...
> 625  if (selectedItem.isStar() == false && 
> selectedItem.getProperty().equals(keyProperty)) {
> 626    flag = false;
> 627    break;
> 628  }
> ...
> {code}



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

Reply via email to