BetterCloud / vault-java-driver

Zero-dependency Java client for HashiCorp's Vault
https://bettercloud.github.io/vault-java-driver/
335 stars 224 forks source link

UnsupportedOperationException while trying to read auth response policies #207

Open mskeefe opened 4 years ago

mskeefe commented 4 years ago

AuthResponse does the following which fails when "policies" is null

final JsonArray authPoliciesJsonArray = authJsonObject.get("policies").asArray();

The result is "java.lang.UnsupportedOperationException: Not an array: null"