When excuting the code below,
RNGRP.getRealPathFromURI(payload.uri)
.then((filePath: string) => console.log(filePath))
.catch((error: string) => console.log(error));
It raises an error saying:
Error: Attempt to invoke interface method 'int android.database.Cursor.getColumnIndexOrThrow(java.lang.String)' on a null object reference
at convertError (GRP.common.js:21)
at tryCatcher (bluebird.js:4594)
at Promise._settlePromiseFromHandler (bluebird.js:2698)
at Promise._settlePromiseAt (bluebird.js:2772)
at Promise._settlePromises (bluebird.js:2888)
at Async._drainQueue (bluebird.js:175)
at Async._drainQueues (bluebird.js:185)
at Async.drainQueues (bluebird.js:67)
at JSTimers.js:301
at _callTimer (JSTimers.js:154)
at _callImmediatesPass (JSTimers.js:202)
at Object.callImmediates (JSTimers.js:470)
at MessageQueue.__callImmediates (MessageQueue.js:329)
at MessageQueue.js:147
at MessageQueue.__guardSafe (MessageQueue.js:316)
at MessageQueue.flushedQueue (MessageQueue.js:146)
(I tried this solution to build successfully: #10 (comment))
When excuting the code below,
It raises an error saying:
(I tried this solution to build successfully: #10 (comment))