Document viewer plugin got some error

i am using ionic document viewer plugin for show pdf

but i got some error

status: 9, 
message: Attempt to invoke virtual method 'boolean' on a null object reference,
details:java.lang.NullPointerException: Attempt to invoke …a:587)↵	at

when used this code

const options: DocumentViewerOptions  = {
    title: 'PDF'
this.document.viewDocument(baseUrl+fileURL, 'application/pdf', options)
1 Like

any fix for this? stuck at the same problem

1 Like