Skip to content

NPE from Amadeus.referenceData.locations.cities #248

@jlccaymares

Description

@jlccaymares

Description

NPE when calling Amadeus.referenceData.locations.cities and there are no cities in the response.

Steps to Reproduce

call Amadeus.referenceData.locations.cities
.get(Params.with("keyword", "SANC").and("countryCode", "CU"));

Expected Behavior: [should return an empty list and not a NPE]

Actual Behavior: [Resources.java class rise a NPE at line 32]

Stable Behavior? [Everytime that I do a search passing something that does not exist.]

Versions

Java17

Checklist

Please make sure you checked the following:

  • Did you download the latest version of this library?

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