Skip to content

Commit

Permalink
check filePathCallback for null
Browse files Browse the repository at this point in the history
  • Loading branch information
adanmayer committed May 4, 2022
1 parent 59e87bc commit 25d930a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,10 @@ public void execFileCallback(Uri[] resValue) {
@Override
public void run() {
try {
Uri[] resValue = copyFileToCachedDir(finalResValue);
filePathCallback.onReceiveValue(resValue);
if (filePathCallback != null) {
Uri[] resValue = copyFileToCachedDir(finalResValue);
filePathCallback.onReceiveValue(resValue);
}
} catch (IOException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 25d930a

Please sign in to comment.