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. Image for the cookie policy date

NullReferenceException: PDF Viewer on Horizontal Scroll


I am getting this exception in Android (Samsung-A600G - OS 8.0). Is anyone facing the same issue ?

Fatal Exception: md50a04f2d274d292b5eb20e3c98dadc0c6.MonoExceptionHelper: (NullReferenceException) Object reference not set to an instance of an object
       at Syncfusion.SfPdfViewer.Android.ScrollViewEx.AddContextMenu()[0x000da](ScrollViewEx0x000da.cs:1)
       at Syncfusion.SfPdfViewer.Android.HorizontalScrollViewEx.OnTouchEvent(Android.Views.MotionEvent e)[0x00122](HorizontalScrollViewEx0x00122.cs:1)
       at Android.Views.View.n_OnTouchEvent_Landroid_view_MotionEvent_(System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_e)[0x0000f](View0x0000f.cs:1)
       at   at (wrapper dynamic-method) System.Object:04397515-8466-4497-b5b7-9fc726b86ada (intptr,intptr,intptr).(unknown.cs:1)

1 Reply

KK Karthik Krishnaraj Syncfusion Team November 26, 2018 12:01 PM UTC

Hi Rohan, 
Greeting from Syncfusion, 
We were unable to reproduce the issue with “Null reference exception occurs while performing touch interactions on scrolling horizontally”. I have attached a simple sample which we tried in our side. Can you please modify the sample to replicate the issue? It will be helpful for us to analyze further and provide better solution. 
Sample Link: 

Live Chat Icon For mobile
Up arrow icon