summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2023-08-22 15:44:00 -0700
committer Colin Cross <ccross@android.com> 2023-08-23 20:53:07 +0000
commit1c9890f797fc930e6619d1303d36ca8193805325 (patch)
tree2a9d812a3a7df3b30dc62f9a58b96e8117e1823e
parentdbb8bfeac21c6be689c349cd59fe180889ccdf94 (diff)
Fix kotlin nullable errors in StatementService
Fix kotlin nullable errors that were exposed by setting the retention of android.annotation.NonNull and android.annotation.Nullable to class retention. Bug: 294110802 Test: builds Change-Id: I2b8de9c8436ccfcb41bba27d4a3fd6b0eb1f6b1e
-rw-r--r--packages/StatementService/src/com/android/statementservice/utils/StatementUtils.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/StatementService/src/com/android/statementservice/utils/StatementUtils.kt b/packages/StatementService/src/com/android/statementservice/utils/StatementUtils.kt
index 92d752c83a9f..4837aad3a025 100644
--- a/packages/StatementService/src/com/android/statementservice/utils/StatementUtils.kt
+++ b/packages/StatementService/src/com/android/statementservice/utils/StatementUtils.kt
@@ -88,6 +88,7 @@ internal object StatementUtils {
} catch (e: Exception) {
return Result.Failure(e)
}
+ checkNotNull(signingInfo)
return if (signingInfo.hasMultipleSigners()) {
signingInfo.apkContentsSigners
} else {