Skip to content

Commit

Permalink
Regenerate websecurityscanner client
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Nov 21, 2018
1 parent eb9fae5 commit 33a2aab
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,9 @@ public String extractNextToken(ListScanConfigsResponse payload) {

@Override
public Iterable<ScanConfig> extractResources(ListScanConfigsResponse payload) {
return payload.getScanConfigsList();
return payload.getScanConfigsList() != null
? payload.getScanConfigsList()
: ImmutableList.<ScanConfig>of();
}
};

Expand Down Expand Up @@ -353,7 +355,9 @@ public String extractNextToken(ListScanRunsResponse payload) {

@Override
public Iterable<ScanRun> extractResources(ListScanRunsResponse payload) {
return payload.getScanRunsList();
return payload.getScanRunsList() != null
? payload.getScanRunsList()
: ImmutableList.<ScanRun>of();
}
};

Expand Down Expand Up @@ -390,7 +394,9 @@ public String extractNextToken(ListCrawledUrlsResponse payload) {

@Override
public Iterable<CrawledUrl> extractResources(ListCrawledUrlsResponse payload) {
return payload.getCrawledUrlsList();
return payload.getCrawledUrlsList() != null
? payload.getCrawledUrlsList()
: ImmutableList.<CrawledUrl>of();
}
};

Expand Down Expand Up @@ -424,7 +430,9 @@ public String extractNextToken(ListFindingsResponse payload) {

@Override
public Iterable<Finding> extractResources(ListFindingsResponse payload) {
return payload.getFindingsList();
return payload.getFindingsList() != null
? payload.getFindingsList()
: ImmutableList.<Finding>of();
}
};

Expand Down

0 comments on commit 33a2aab

Please sign in to comment.