Uploaded image for project: 'SonarLint For IntelliJ'
  1. SonarLint For IntelliJ
  2. SLI-626

NPE when an HTTP response has an empty body

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.2
    • Component/s: None
    • Labels:
      None

      Description

      In ApacheHttpResponse response.bodyBytes is used to build the ByteArrayInputStream while it is nullable, leading in some cases to a NullPointerException. We should build the stream from an empty array in this case

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            damien.urruty Damien Urruty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: