Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate websecurityscanner client #4080

Merged
merged 1 commit into from
Nov 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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