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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfRotator.DataSource = null Java.Lang.NullPointerException

Thread ID:

Created:

Updated:

Platform:

Replies:

125167 Jul 27,2016 04:36 AM UTC Jul 28,2016 11:26 AM UTC Xamarin.Forms 1
loading
Tags: SfRotator
huhu
Asked On July 27, 2016 04:36 AM UTC

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"

Hemalatha Marikumar [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;