From ef681076dbc8071a9784e937f97f42a504696b06 Mon Sep 17 00:00:00 2001 From: "Sonsino, Ofir (os0695)" Date: Mon, 23 Apr 2018 13:55:04 +0300 Subject: AAI Customer list is empty fix Change-Id: I7439c6f7bb18daddc297af1d83a53d576b8914a1 Issue-ID: VID-78 Signed-off-by: Sonsino, Ofir (os0695) --- .../src/main/java/org/onap/vid/aai/SubscriberListWithFilterData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0d4b4b7b..d7f9ad87 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 subscribers = subscriberList.customer; + List subscribers = subscriberList != null ? subscriberList.customer : new ArrayList(); List subscribersWithFilter = new ArrayList<>(); for (Subscriber subscriber :subscribers){ SubscriberWithFilter subscriberWithFilter = new SubscriberWithFilter(); -- cgit 1.2.3-korg