Varun Sharma

Cherry pick ONOS-4721 fix

Change-Id: Idb0ba949293451488b350c7cdcfc50094a3c9abc
...@@ -151,8 +151,7 @@ public final class GroupCodec extends JsonCodec<Group> { ...@@ -151,8 +151,7 @@ public final class GroupCodec extends JsonCodec<Group> {
151 groupType = Group.Type.FAILOVER; 151 groupType = Group.Type.FAILOVER;
152 break; 152 break;
153 default: 153 default:
154 - log.warn("The requested type {} is not defined for group.", type); 154 + nullIsIllegal(groupType, "The requested group type " + type + " is not valid");
155 - return null;
156 } 155 }
157 156
158 // parse group buckets 157 // parse group buckets
......