Skip to content
This repository was archived by the owner on May 21, 2026. It is now read-only.
This repository was archived by the owner on May 21, 2026. It is now read-only.

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions