From 07134eb8c27b831a14680cd1f7e107099e1c803c Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Tue, 2 Apr 2024 15:18:14 +0200 Subject: [PATCH] Fix NPW on no given token --- .../src/main/java/info/hannes/github/DownloadWorker.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/githubAppUpdate/src/main/java/info/hannes/github/DownloadWorker.kt b/githubAppUpdate/src/main/java/info/hannes/github/DownloadWorker.kt index 41abe45..05a4ec0 100644 --- a/githubAppUpdate/src/main/java/info/hannes/github/DownloadWorker.kt +++ b/githubAppUpdate/src/main/java/info/hannes/github/DownloadWorker.kt @@ -13,7 +13,7 @@ class DownloadWorker(private val appContext: Context, workerParams: WorkerParame // Get the input val currentVersion = inputData.getString(CURRENT_VERSION)!! val repoUrl = inputData.getString(REPO_URL)!! - val token = inputData.getString(TOKEN)!! + val token = inputData.getString(TOKEN) val d = async { check(currentVersion, repoUrl, token)