commit | a27ada7826cfdc6a08514127cac03a757ccaae04 | [log] [tgz] |
---|---|---|
author | Brian O'Connor <bocon@onlab.us> | Wed Apr 29 18:25:12 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Thu Apr 30 18:35:13 2015 +0000 |
tree | 2a1fd3e1a06aa5eb3a52f99be0dac55ea50feb31 | |
parent | dee7871c43799ba9685c702e7c51a8500047f5f5 [diff] [blame] |
NPE protection for purge requests (ONOS-1463) Change-Id: I02732ed83aaaf5c760fdb96899696177415ebd23
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/phase/IntentProcessPhase.java b/core/net/src/main/java/org/onosproject/net/intent/impl/phase/IntentProcessPhase.java index 1ed42fd..399a307 100644 --- a/core/net/src/main/java/org/onosproject/net/intent/impl/phase/IntentProcessPhase.java +++ b/core/net/src/main/java/org/onosproject/net/intent/impl/phase/IntentProcessPhase.java
@@ -50,7 +50,7 @@ case WITHDRAW_REQ: return new WithdrawRequest(processor, data, Optional.ofNullable(current)); case PURGE_REQ: - return new PurgeRequest(data, current); + return new PurgeRequest(data, Optional.ofNullable(current)); default: // illegal state return new Failed(data);