Charles Chan
Committed by Gerrit Code Review

ONOS-3593 Fix NPE when selector or treatment is not assigned in FlowRule.Builder

Change-Id: I4dc1257ddcb67f43fadf16f56b517db84a74b83f
......@@ -301,8 +301,8 @@ public class DefaultFlowRule implements FlowRule {
private Integer priority;
private DeviceId deviceId;
private Integer tableId = 0;
private TrafficSelector selector;
private TrafficTreatment treatment;
private TrafficSelector selector = DefaultTrafficSelector.builder().build();
private TrafficTreatment treatment = DefaultTrafficTreatment.builder().build();
private Integer timeout;
private Boolean permanent;
......