diff --git a/android/src/main/java/com/dooboolab/rniap/PromiseUtlis.kt b/android/src/main/java/com/dooboolab/rniap/PromiseUtlis.kt index c1bc5afde..ffaa96931 100644 --- a/android/src/main/java/com/dooboolab/rniap/PromiseUtlis.kt +++ b/android/src/main/java/com/dooboolab/rniap/PromiseUtlis.kt @@ -37,7 +37,7 @@ fun Promise.safeReject( throwable: Throwable?, ) { try { - this.reject(code, message, throwable) + this.reject(code ?: "", message, throwable) } catch (oce: ObjectAlreadyConsumedException) { Log.d(TAG, "Already consumed ${oce.message}") }