RadaeePDF.com :: Topic: Exception when opening stream (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: Exception when opening stream

Exception when opening stream 3 years 1 month ago #6999

I want to open a PDF document. I use this code:
PDFFileStream stream = new PDFFileStream();
res = doc.OpenStream(stream, "");
This code throws an exception NullPointerException with message "println needs a message". This exception is thrown in Document.OpenStream method on this line:
hand_val = openStream(stream, password);
My variable fullPath is existing path to the PDF document.
Can you give me an advice, please, what I'm doing wrong?


I found, that the code above works, but only if variable fullPath is a path to the internal storage of device. When fullPath is a path to the external memory card, the code above throws the exception.
Last Edit: 3 years 1 month ago by sanyu erisa. Reason: Add more information
The administrator has disabled public write access.
Powered by Kunena Forum