Skip to content

Commit

Permalink
fix(cf): CloudFoundryCredentials#getRegions NPE on using an uninitial…
Browse files Browse the repository at this point in the history
…ized field. (#3727)

A previous refactor moved the field initialization in the getter to make it lazy but `getRegions()` wasn't using the getter.
  • Loading branch information
Pierre Delagrave authored and Jammy Louie committed May 30, 2019
1 parent 517b53a commit f365205
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public CloudFoundryClient getClient() {

public Collection<Map<String, String>> getRegions() {
try {
return credentials.getSpaces().all().stream()
return getCredentials().getSpaces().all().stream()
.map(space -> singletonMap("name", space.getRegion()))
.collect(toList());
} catch (CloudFoundryApiException e) {
Expand Down

0 comments on commit f365205

Please sign in to comment.