You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Michael Bolz (JIRA)" <ji...@apache.org> on 2016/04/25 20:38:13 UTC

[jira] [Commented] (OLINGO-941) Potential NullPointerException if Navigation Property in $select Option

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

Michael Bolz commented on OLINGO-941:
-------------------------------------

Hi [~Michael.Burwig],

Thanks for finding the issue.
With [this commit|https://git1-us-west.apache.org/repos/asf?p=olingo-odata2.git;a=commit;h=768bc4c65f0869d89b02349f5b9bfffd2abc378d] it should be fixed.

Best Regards, Michael 

> 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
>            Assignee: Michael Bolz
>
> Specifying a navigation property in a $select option can cause a {{NullPointerException}} due to the following lines 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)