Skip to content

Commit 973c43a

Browse files
mebigfatguyMice Xia
authored andcommitted
CLOUDSTACK-2530: fix npe if no network isolation methods
Signed-off-by: Mice Xia <mice_xia@tcloudcomputing.com>
1 parent 3ed9e42 commit 973c43a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎api/src/org/apache/cloudstack/api/command/admin/network/ListNetworkIsolationMethodsCmd.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void execute() {
4444
isolationResponses.add(isolationMethod);
4545
}
4646
}
47-
response.setResponses(isolationResponses, methods.length);
47+
response.setResponses(isolationResponses, isolationResponses.size());
4848
response.setResponseName(getCommandName());
4949
this.setResponseObject(response);
5050

0 commit comments

Comments
 (0)