Passing an empty list instead of null to improve null-safety
Change-Id: I6bef6c4c263a369ed49ea1da12c23528a56dd2c8
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -16,6 +16,7 @@ | ... | @@ -16,6 +16,7 @@ |
16 | package org.onosproject.net.intent.impl; | 16 | package org.onosproject.net.intent.impl; |
17 | 17 | ||
18 | import java.util.Arrays; | 18 | import java.util.Arrays; |
19 | +import java.util.Collections; | ||
19 | import java.util.HashSet; | 20 | import java.util.HashSet; |
20 | import java.util.List; | 21 | import java.util.List; |
21 | import java.util.Set; | 22 | import java.util.Set; |
... | @@ -66,7 +67,7 @@ public class SinglePointToMultiPointIntentCompiler | ... | @@ -66,7 +67,7 @@ public class SinglePointToMultiPointIntentCompiler |
66 | Intent result = new LinkCollectionIntent(intent.appId(), | 67 | Intent result = new LinkCollectionIntent(intent.appId(), |
67 | intent.selector(), | 68 | intent.selector(), |
68 | intent.treatment(), links, | 69 | intent.treatment(), links, |
69 | - intent.egressPoints(), null); | 70 | + intent.egressPoints(), Collections.emptyList()); |
70 | 71 | ||
71 | return Arrays.asList(result); | 72 | return Arrays.asList(result); |
72 | } | 73 | } | ... | ... |
-
Please register or login to post a comment