sangho
Committed by Gerrit Code Review

Omits null checking of treatment when removing next objectives; it was removed f…

…rom remove() but not for remove(context)

Change-Id: Id5acf7589e63dbf6f6c3dbd3253c5979fd5a478f
...@@ -219,7 +219,6 @@ public final class DefaultNextObjective implements NextObjective { ...@@ -219,7 +219,6 @@ public final class DefaultNextObjective implements NextObjective {
219 checkNotNull(appId, "Must supply an application id"); 219 checkNotNull(appId, "Must supply an application id");
220 checkNotNull(id, "id cannot be null"); 220 checkNotNull(id, "id cannot be null");
221 checkNotNull(type, "The type cannot be null"); 221 checkNotNull(type, "The type cannot be null");
222 - checkArgument(!treatments.isEmpty(), "Must have at least one treatment");
223 222
224 return new DefaultNextObjective(id, treatments, appId, 223 return new DefaultNextObjective(id, treatments, appId,
225 context, type, Operation.REMOVE); 224 context, type, Operation.REMOVE);
......