Thanks to visit codestin.com
Credit goes to github.com

Skip to content

NullPointerException org.scribe.model.Response #492

@wateringcan

Description

@wateringcan

by calling method Response.getBody() if the Body of the Response is null.
Bugfix would be:

package org.scribe.model;
//....
  private String parseBodyContents()
  {
    try{
      body = StreamUtils.getStreamContents(getStream());
      return body;
    }catch(Exception e){
      return "";
    }
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions