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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfRotator.DataSource = null Java.Lang.NullPointerException

Thread ID:





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


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;
                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.


Hemalatha M.R


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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