- Home
- Forum
- Xamarin.Forms
- drag and drop exception in android
drag and drop exception in android
Hi,
I am getting sometimes following exception for my sfdatagrid with drag and drop enabled. I see in my crash logs of production version, can you image what could be the problem here? maybe you can give me some hint?
thanks,
Emil
Xamarin caused by: android.runtime.JavaProxyThrowable: System.NullReferenceException: Object reference not set to an instance of an object at Syncfusion.SfDataGrid.XForms.Droid.GridCellBaseRenderer.get_GridRowDragDropController () [0x00010] in <7f6fe138d83a47f3b66bff185c38ebac>:0 at Syncfusion.SfDataGrid.XForms.Droid.GridCellBaseRenderer.get_IsRowDragging () [0x00000] in <7f6fe138d83a47f3b66bff185c38ebac>:0 at Syncfusion.SfDataGrid.XForms.Droid.GridCellBaseRenderer.HandleTouchForRowDragAndDrop (Android.Views.MotionEvent e) [0x00028] in <7f6fe138d83a47f3b66bff185c38ebac>:0 at Syncfusion.SfDataGrid.XForms.Droid.GridCellBaseRenderer.OnTouchEvent (Android.Views.MotionEvent e) [0x00008] in <7f6fe138d83a47f3b66bff185c38ebac>:0 at Syncfusion.SfDataGrid.XForms.Droid.GridCellRenderer.OnTouchEvent (Android.Views.MotionEvent e) [0x00000] in <7f6fe138d83a47f3b66bff185c38ebac>:0 at Android.Views.View.n_OnTouchEvent_Landroid_view_MotionEvent_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_e) [0x0000f] in <c625116b610c46b598bd3f628c71ddaa>:0 at (wrapper dynamic-method) System.Object:4770281b-9af0-4f14-b917-b40a4567472e (intptr,intptr,intptr) at md5b3cfe42b0b280845580702f06d56e023.GridCellRenderer.n_onTouchEvent(Native Method) at md5b3cfe42b0b280845580702f06d56e023.GridCellRenderer.onTouchEvent(GridCellRenderer.java:55) at android.view.View.dispatchTouchEvent(View.java:10717) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2833) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2535) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2835) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550) at android.view.ViewGroup.cancelTouchTarget(ViewGroup.java:2762) at android.view.ViewGroup.removeViewInternal(ViewGroup.java:4949) at android.view.ViewGroup.removeViewInternal(ViewGroup.java:4930) at android.view.ViewGroup.removeView(ViewGroup.java:4861) at mono.java.lang.RunnableImplementor.n_run(Native Method) at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:30) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6732) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
SIGN IN To post a reply.
1 Reply
AN
Ashok N
Syncfusion Team
September 21, 2017 06:31 PM UTC
Hi Emil,
Thanks for contacting Syncfusion support.
We have checked your call stack and could you please install our SfDataGrid control latest NuGet(15.3.0.29) after clear the NuGet cache from your machine. Please refer the below KB link to get more details about NuGet cache clear
Whenever a new NuGet package is installed, the NuGet will be stored in NuGet cache location. So please clear the NuGet cache from your machine and install new NuGet.
Still you facing same issue, please share your SfDataGrid definition code snippet and SfDataGrid version in both PCL and Renderer project, that would be more helpful for further analyse.
Regards,
Ashok
SIGN IN To post a reply.
- 1 Reply
- 2 Participants
-
EM Emil
- Sep 20, 2017 10:55 PM UTC
- Sep 21, 2017 06:31 PM UTC