groupon / FeatureAdapter

FeatureAdapter (FA) is an Android Library providing an optimized way to display complex screens on Android.
Apache License 2.0
113 stars 12 forks source link

NPE on Collections.unmodifiableList #33

Closed ciprimare closed 5 years ago

ciprimare commented 5 years ago

Version: 2.1.0

Steps to reproduce:

These steps will cause:

java.lang.NullPointerException
        at java.util.Collections$UnmodifiableCollection.<init>(Collections.java:1099)
        at java.util.Collections$UnmodifiableList.<init>(Collections.java:1288)
        at java.util.Collections.unmodifiableList(Collections.java:1275)
        at com.groupon.featureadapter.FeatureItems.setItemsAndGetOffset(FeatureItems.java:68)
        at com.groupon.featureadapter.FeaturesAdapter.dispatchFeatureUpdate(FeaturesAdapter.java:176)
        at com.groupon.featureadapter.FeaturesAdapter.updateFeatureItems(FeaturesAdapter.java:126)
stephanenicolas commented 5 years ago

Fixed in version 2.1.1