ONOS-4721 fix
Change-Id: Idb0ba949293451488b350c7cdcfc50094a3c9abc
Showing
1 changed file
with
1 additions
and
2 deletions
... | @@ -146,8 +146,7 @@ public final class GroupCodec extends JsonCodec<Group> { | ... | @@ -146,8 +146,7 @@ public final class GroupCodec extends JsonCodec<Group> { |
146 | groupType = Group.Type.FAILOVER; | 146 | groupType = Group.Type.FAILOVER; |
147 | break; | 147 | break; |
148 | default: | 148 | default: |
149 | - log.warn("The requested type {} is not defined for group.", type); | 149 | + nullIsIllegal(groupType, "The requested group type " + type + " is not valid"); |
150 | - return null; | ||
151 | } | 150 | } |
152 | 151 | ||
153 | // parse group buckets | 152 | // parse group buckets | ... | ... |
-
Please register or login to post a comment