VPC : CS-15464, revoked static route will not be sent out

This commit is contained in:
anthony 2012-07-11 12:01:01 -07:00
parent 04142986c7
commit 36eafbdb2c
1 changed files with 4 additions and 2 deletions

View File

@ -25,8 +25,10 @@ public class SetStaticRouteAnswer extends Answer{
public SetStaticRouteAnswer(SetStaticRouteCommand cmd, boolean success, String[] results) {
super(cmd, success, null);
assert (cmd.getStaticRoutes().length == results.length) : "Static routes and their results should be the same length";
this.results = results;
if (cmd.getStaticRoutes() != null && results != null ) {
assert (cmd.getStaticRoutes().length == results.length) : "Static routes and their results should be the same length";
this.results = results;
}
}
public String[] getResults() {