diff --git a/app/src/googleplay/java/org/tasks/analytics/Firebase.kt b/app/src/googleplay/java/org/tasks/analytics/Firebase.kt
index 6c3300c0a..21dda29df 100644
--- a/app/src/googleplay/java/org/tasks/analytics/Firebase.kt
+++ b/app/src/googleplay/java/org/tasks/analytics/Firebase.kt
@@ -69,7 +69,7 @@ class Firebase @Inject constructor(@ForApplication val context: Context, prefere
init {
if (enabled) {
- analytics = FirebaseAnalytics.getInstance(context!!)
+ analytics = FirebaseAnalytics.getInstance(context)
analytics?.setAnalyticsCollectionEnabled(true)
Fabric.with(context, Crashlytics())
remoteConfig = FirebaseRemoteConfig.getInstance()
diff --git a/app/src/main/java/org/tasks/data/TaskAttachment.kt b/app/src/main/java/org/tasks/data/TaskAttachment.kt
index a34523344..a469bf078 100644
--- a/app/src/main/java/org/tasks/data/TaskAttachment.kt
+++ b/app/src/main/java/org/tasks/data/TaskAttachment.kt
@@ -47,7 +47,7 @@ class TaskAttachment {
}
fun convertPathUri() {
- setUri(Uri.fromFile(File(uri)).toString())
+ setUri(Uri.fromFile(File(uri!!)).toString())
}
fun parseUri(): Uri? {
diff --git a/app/src/main/res/values/keys.xml b/app/src/main/res/values/keys.xml
index 08143f868..2ff9cded7 100644
--- a/app/src/main/res/values/keys.xml
+++ b/app/src/main/res/values/keys.xml
@@ -348,7 +348,7 @@
https://tasks.org/subscribe
disable_subtasks
wearable_notifications
- notified_oauth_error_%s_%s
+ notified_oauth_error_%1$s_%2$s
chip_style
chip_appearance
desaturate_colors