Android Question Nullpointer exception error opening PDF document

Douwe Siegersma

Member
Licensed User
Longtime User
Hello,

I'm getting a Null exeption error on this line.
glDoc = pdf.newDocument(File.DirInternal,"Crypto.pdf", 268435456,"")
glDoc is opened and I do a File.exist on "Crypto.pdf"
I'm using the PDFium library of DonManfred.

The complete error message is:

java.lang.NullPointerException: Attempt to invoke virtual method 'com.shockwave.pdfium.PdfDocument com.shockwave.pdfium.PdfiumCore.newDocument(android.os.ParcelFileDescriptor)' on a null object reference
 
Top