LoadDocument error with version 16.1.0.24

Hi,

Since I updated SfPdfViewer to version 16.1.0.24 I get the error "System.NullReferenceException: Object reference not set to an instance of an object." when loading an excisting pdf file in the PdfViewer. After re-installing the old version 15.4.0.20 the error does not occur.

My code:

            var directory = new Java.IO.File(Android.OS.Environment.ExternalStorageDirectory, "pdf").ToString();
            var pathPDF = System.IO.Path.Combine(directory, "HypoScan.pdf");
            var pdfViewer = new Syncfusion.SfPdfViewer.Android.SfPdfViewer(v.Context);
            var PdfStream = new FileStream(pathPDF, FileMode.Open, FileAccess.Read); 
            pdfViewer.LoadDocument(PdfStream); // version 16.1.0.24 --> System.NullReferenceException: Object reference not set to an instance of an object.
            PdfStream.Close();

Do you know a solution?



1 Reply

NK Navaneetha Kannan Sudalai Muthu Syncfusion Team March 6, 2018 02:11 PM UTC

Hi Vince,  

Sorry for the inconvenience caused.  We are able to reproduce the issue “NullReferenceException occurs when loading PDF documents”. The fix for the issue will be included in our Essential Studio 2018 Volume 1 – SP 1 which is expected to be available by the end of this month.  

If you need a patch for the issue kindly create a support incident from your DirecTrac account using the following link.  


Best, 
Navaneetha Kannan

Loader.
Up arrow icon