We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62dedab commit bae3d1bCopy full SHA for bae3d1b
src/main/kotlin/distribution/FCMNotifier.kt
@@ -23,11 +23,12 @@ internal object FCMNotifier : Notifier {
23
24
override fun initialize() {
25
val saf = EnvironmentVariables.Services.GoogleCredentials.ServiceAccountFile
26
- if (!saf.isSet) {
27
- Logger.info("Google service account file not set. Device notifications will not be sent.")
+ val serviceAccountFile = File(saf.value!!)
+
28
+ if (!serviceAccountFile.exists()) {
29
+ Logger.info("Google service account file not found. Device notifications will not be sent.")
30
return
31
}
- val serviceAccountFile = File(saf.value!!)
32
33
Logger.debug("Initializing Firebase with service account file: $serviceAccountFile")
34
val options = FirebaseOptions.builder()
0 commit comments