This is a migrated thread and some comments may be shown as answers.

Donut series throws : Object reference not set to an instance of an object.

1 Answer 59 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Hady
Top achievements
Rank 2
Hady asked on 12 Nov 2018, 09:39 AM

I am trying to build a sample of donut series but it throws Null reference exception on Android.

I am using:

- Xamarin forms version 3.2

- Android 8.1

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Lance | Manager Technical Support
Telerik team
answered on 12 Nov 2018, 03:04 PM
Hello Hady,

Unfortunately, this is not enough information to be able to tell what the problem is. The example in the documentation works as expected on XF 3.2 (targeting Android 8.1).

Find the runnable demo attached and here's a screenshot at runtime:




Further Investigation

Double check that every project is using the Chart's Required Telerik Assemblies. If you are using NuGet, make sure that the solution doesn't have duplicate NuGet packages installed (for example, if Telerik.UI.for.Xamarin package is installed, it should be the only Telerik package installed).
 
If you've confirmed that the references are good, can you please provide the code you're using so that we can replicate the exception. Please include:

- The view code  XAML (and code-behind)
- If you're using MVVM, please include the view model class
- The data model class being used for the 

I look forward to your reply.

Regards,
Lance | Tech Support Engineer, Sr.
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Hady
Top achievements
Rank 2
Answers by
Lance | Manager Technical Support
Telerik team
Share this question
or