Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-941

Potential NullPointerException if Navigation Property in $select Option

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • V2 2.0.6
    • V2 2.0.7
    • odata2-jpa
    • None

    Description

      Specifying a navigation property in a $select option can cause a NullPointerException due to the following lines of code:

      ODataJPAResponseBuilderDefault.java
      ...
      625  if (selectedItem.isStar() == false && selectedItem.getProperty().equals(keyProperty)) {
      626    flag = false;
      627    break;
      628  }
      ...
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mirbo mibo
            Michael.Burwig Michael Burwig
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment