We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

SfRotator.DataSource = null Java.Lang.NullPointerException

Hi:

i found a bug  about SfRotator.

here is my code in C#

            List<SfRotatorItem> ListPhoto = WCFHelper.GetProductPhotoList(ProductId);

            if (ListPhoto.Count == 0)
            {
                rotator.DataSource = null;
                //rotator.EnableAutoPlay = false;
            }
            else
            {
                rotator.EnableAutoPlay = true;
                rotator.DataSource = ListPhoto;
            }

if  i write  rotator.EnableAutoPlay = false,   it will work fine

but  if no have this code,  the app pop this:   " Java.Lang.NullPointerException"

1 Reply

HM Hemalatha Marikumar Syncfusion Team July 28, 2016 11:26 AM UTC

Hi Huhu,

Thanks for contacting Syncfusion Support.

We were able to reproduce the reported issue "Crash on SfRotator Control with empty datasource" at our side. We have created a new incident for this reported issue under your account.Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents/


Regards,
Hemalatha M.R

Loader.
Live Chat Icon For mobile
Up arrow icon