Skip to content

getErrorStream() in amazon-pay-sdk-java/src/com/amazon/pay/impl/Util.java may throw NPE #16

@stefanofornari

Description

@stefanofornari

In Util:114 the line

in = new BufferedReader(new InputStreamReader(con.getErrorStream()));

does not take into account that con.getErrorStream() may return null, in such case a NPE will be thrown.

See https://docs.oracle.com/javase/7/docs/api/java/net/HttpURLConnection.html#getErrorStream()

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