NullReferenceException - ExtendedListView.OnMeasure

3 posts, 0 answers
  1. Jesper Bolling
    Jesper Bolling avatar
    2 posts
    Member since:
    Nov 2009

    Posted 21 Mar Link to this post

    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. Nikolay
    Admin
    Nikolay avatar
    395 posts

    Posted 24 Mar Link to this post

    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
  3. Jesper Bolling
    Jesper Bolling avatar
    2 posts
    Member since:
    Nov 2009

    Posted 25 Mar in reply to Nikolay Link to this post

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

Back to Top