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

NullReferenceException - ExtendedListView.OnMeasure

2 Answers 106 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Jesper Bolling
Top achievements
Rank 1
Jesper Bolling asked on 21 Mar 2017, 02:54 PM

After updating to the latest Telerik for Xamarin.Forms my Android project throws an exception when running:

 

03-21 11:49:29.863 I/MonoDroid( 3328): UNHANDLED EXCEPTION:

03-21 11:49:29.867 I/MonoDroid( 3328): System.NullReferenceException: Object reference not set to an instance of an object.
03-21 11:49:29.867 I/MonoDroid( 3328):   at (wrapper managed-to-native) Java.Interop.NativeMethods:java_interop_jnienv_call_nonvirtual_void_method_a (intptr,intptr&,intptr,intptr,intptr,Java.Interop.JniArgumentValue*)
03-21 11:49:29.867 I/MonoDroid( 3328):   at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x0008f] in /Users/builder/data/lanes/4009/3a62f1ea/source/Java.Interop/src/Java.Interop/Java.Interop/JniEnvironment.g.cs:12079 
03-21 11:49:29.867 I/MonoDroid( 3328):   at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00068] in /Users/builder/data/lanes/4009/3a62f1ea/source/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:31 
03-21 11:49:29.867 I/MonoDroid( 3328):   at Android.Views.View.OnMeasure (System.Int32 widthMeasureSpec, System.Int32 heightMeasureSpec) [0x0002a] in /Users/builder/data/lanes/4009/3a62f1ea/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Android.Views.View.cs:14800 
03-21 11:49:29.867 I/MonoDroid( 3328):   at Telerik.XamarinForms.DataControlsRenderer.Android.RadExtendedListView.OnMeasure (System.Int32 widthMeasureSpec, System.Int32 heightMeasureSpec) [0x00071] in <b664ae9a6fbb4834b3589dc3568115e7>:0 
03-21 11:49:29.867 I/MonoDroid( 3328):   at Android.Views.View.n_OnMeasure_II (System.IntPtr jnienv, System.IntPtr native__this, System.Int32 widthMeasureSpec, System.Int32 heightMeasureSpec) [0x00009] in /Users/builder/data/lanes/4009/3a62f1ea/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Android.Views.View.cs:14787 
03-21 11:49:29.867 I/MonoDroid( 3328):   at (wrapper dynamic-method) System.Object:c1e42a16-a523-4e8e-b034-412a0c9d22b2 (intptr,intptr,int,int)

 

Any clues?

2 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 24 Mar 2017, 08:34 AM
Hello Jesper,

Could you please share more details on your specific scenario? It would be very helpful if you could zip and send us a small test app reproducing it so that we could debug and find the cause for the issue.

Regards,
Nikolay
Telerik by Progress
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
0
Jesper Bolling
Top achievements
Rank 1
answered on 26 Mar 2017, 03:09 AM

Hey Nikolay,

 

Thanks for your interest. i actually solved it today, though I dint know which step solved it.

What I did: Updatedthe Android SDK wth the latest packages. After that I installed JAVA sdk 8, and pointed Xamarin to that one.
After that it all worked again. (I only had the error when trying compiling the android solution).

Tags
ListView
Asked by
Jesper Bolling
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Jesper Bolling
Top achievements
Rank 1
Share this question
or