diff options
author | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-04-23 13:55:04 +0300 |
---|---|---|
committer | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-04-23 13:55:04 +0300 |
commit | ef681076dbc8071a9784e937f97f42a504696b06 (patch) | |
tree | 49b19f6e957a5fcb5821e7b5b07faa86b61e7ab4 /vid-app-common/src/main | |
parent | 09c9bb185c52e21f69ad3ad8b18c13ce8428359a (diff) |
AAI Customer list is empty fix
Change-Id: I7439c6f7bb18daddc297af1d83a53d576b8914a1
Issue-ID: VID-78
Signed-off-by: Sonsino, Ofir (os0695) <os0695@intl.att.com>
Diffstat (limited to 'vid-app-common/src/main')
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/aai/SubscriberListWithFilterData.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/SubscriberListWithFilterData.java b/vid-app-common/src/main/java/org/onap/vid/aai/SubscriberListWithFilterData.java index 0d4b4b7b3..d7f9ad879 100644 --- a/vid-app-common/src/main/java/org/onap/vid/aai/SubscriberListWithFilterData.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/SubscriberListWithFilterData.java @@ -13,7 +13,7 @@ import java.util.List; public class SubscriberListWithFilterData { public SubscriberListWithFilterData(SubscriberList subscriberList, RoleValidator roleValidator){ - List<Subscriber> subscribers = subscriberList.customer; + List<Subscriber> subscribers = subscriberList != null ? subscriberList.customer : new ArrayList<Subscriber>(); List<SubscriberWithFilter> subscribersWithFilter = new ArrayList<>(); for (Subscriber subscriber :subscribers){ SubscriberWithFilter subscriberWithFilter = new SubscriberWithFilter(); |