Skip to content

Commit

Permalink
fix: the crash of exception.getCause.getMessage in listFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
hellohublot committed Sep 6, 2024
1 parent 8a51dbf commit feef3ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion android/src/main/java/org/rncloudfs/RNCloudFsModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ public void listFiles(ReadableMap options, final Promise promise) {
})
.addOnFailureListener(exception -> {
clearPendingOperations();
Log.e(TAG, "Unable to query files: " + exception.getCause().getMessage());
try {
Log.e(TAG, "Unable to query files: " + exception.getCause().getMessage());
UserRecoverableAuthIOException e = (UserRecoverableAuthIOException) exception;
mPendingPromise = promise;
mPendingOptions = options;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-cloud-fs",
"version": "2.6.2",
"version": "2.6.3",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit feef3ae

Please sign in to comment.