Skip to content

Commit 007ddec

Browse files
author
Mohit Chandwani
committed
spotbug
1 parent 9f67d10 commit 007ddec

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

common/src/main/java/com/microsoft/identity/common/crypto/AndroidWrappedKeyLoader.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import androidx.annotation.RequiresApi;
3333

3434
import com.microsoft.identity.common.internal.util.AndroidKeyStoreUtil;
35+
import com.microsoft.identity.common.java.controllers.ExceptionAdapter;
3536
import com.microsoft.identity.common.java.crypto.key.AES256KeyLoader;
3637
import com.microsoft.identity.common.java.crypto.key.KeyUtil;
3738
import com.microsoft.identity.common.java.exception.ClientException;
@@ -264,6 +265,7 @@ private void saveSecretKeyToStorage(@NonNull final SecretKey unencryptedKey) thr
264265
} catch (final Throwable e) {
265266
span.setStatus(StatusCode.ERROR);
266267
span.recordException(e);
268+
throw ExceptionAdapter.clientExceptionFromException(e);
267269
} finally {
268270
span.end();
269271
}

0 commit comments

Comments
 (0)