Skip to content

Commit

Permalink
address eric's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismcg14 committed Feb 1, 2023
1 parent 41ba4a3 commit 62c98b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ else if(region != null){

final Set<Instance> newInstances = addExtraMappingAttribute(query(ec2, new DescribeInstancesRequest().withFilters(filters).withMaxResults(maxResults)));

if (!newInstances.isEmpty() && newInstances != null) {
if (newInstances != null && !newInstances.isEmpty()) {
instances.addAll(newInstances);
}

Expand Down

0 comments on commit 62c98b0

Please sign in to comment.