Skip to content

Commit a286f02

Browse files
authored
Avoid NPE in GetKeywords example (#562)
Set the default value to properly handle when the user does not pass the `--omitUnselectedResourceNames` parameter.
1 parent ab9ffd1 commit a286f02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

google-ads-examples/src/main/java/com/google/ads/googleads/examples/basicoperations/GetKeywords.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private static class GetKeywordsParams extends CodeSampleParams {
4949
private Long adGroupId;
5050

5151
@Parameter(names = ArgumentNames.OMIT_UNSELECTED_RESOURCE_NAMES, arity = 1)
52-
private Boolean omitUnselectedResourceNames;
52+
private Boolean omitUnselectedResourceNames = false;
5353
}
5454

5555
public static void main(String[] args) throws IOException {

0 commit comments

Comments
 (0)