Skip to content

Commit

Permalink
fix(core, android): fix a null issue when initializing `fromResource(…
Browse files Browse the repository at this point in the history
…)` (#12404)

* fix(core, android): fix a null issue when initializing from ressources

* fix(core, android): fix a null issue when initializing from ressources
  • Loading branch information
Lyokone committed Feb 29, 2024
1 parent 15d8a1c commit 635cd78
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -204,7 +204,9 @@ public void optionsFromResource(
try {
final FirebaseOptions options = FirebaseOptions.fromResource(applicationContext);
if (options == null) {
taskCompletionSource.setResult(null);
taskCompletionSource.setException(
new Exception(
"Failed to load FirebaseOptions from resource. Check that you have defined values.xml correctly."));
return;
}
taskCompletionSource.setResult(firebaseOptionsToMap(options));
Expand Down

0 comments on commit 635cd78

Please sign in to comment.