commit | a78f060013e06973a2debcb20e8cc312d9b72a4b | [log] [tgz] |
---|---|---|
author | Brian O'Connor <bocon@onlab.us> | Thu Sep 22 10:56:08 2016 -0700 |
committer | Brian O'Connor <bocon@onlab.us> | Wed Sep 28 21:38:07 2016 +0000 |
tree | e7717131b78f4314df451823f8bf6b4e0683360e | |
parent | 1ff090116a69bbd0d7f941061dc3fe62ef240343 [diff] |
ONOS-5309 Clearing installables from intent data object on successful uninstallation Change-Id: Ic77af12f98bc1519efb2e2703223e340aa5b20e4 (cherry picked from commit 24389970b336c3bb2fb883f2aaa87f7b457bde4a)
diff --git a/core/api/src/main/java/org/onosproject/net/intent/IntentData.java b/core/api/src/main/java/org/onosproject/net/intent/IntentData.java index 84acfc3..feada17 100644 --- a/core/api/src/main/java/org/onosproject/net/intent/IntentData.java +++ b/core/api/src/main/java/org/onosproject/net/intent/IntentData.java
@@ -114,7 +114,8 @@ public IntentData(IntentData original, List<Intent> installables) { this(original); - this.installables = ImmutableList.copyOf(checkNotNull(installables)); + this.installables = checkNotNull(installables).isEmpty() ? + Collections.emptyList() : ImmutableList.copyOf(installables); } // kryo constructor