Ray Milkey

ONOS-1950 - NPE if intent state is null

Change-Id: I5e93cf57f3c881e5528e3ac522f95451fab70fba
......@@ -49,7 +49,9 @@ public final class IntentCodec extends JsonCodec<Intent> {
IntentService service = context.getService(IntentService.class);
IntentState state = service.getIntentState(intent.key());
result.put("state", state.toString());
if (state != null) {
result.put("state", state.toString());
}
return result;
}
......