Skip to content

Commit da09a78

Browse files
committed
fix(analytics): logEvent(...) throws an exception if no params are given
1 parent 0c11bb4 commit da09a78

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/long-avocados-hear.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@capacitor-firebase/analytics': patch
3+
---
4+
5+
fix(android): `logEvent(...)` throws an exception if no params are given

packages/analytics/android/src/main/java/io/capawesome/capacitorjs/plugins/firebase/analytics/FirebaseAnalyticsHelper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public static Bundle createBundleFromJson(@Nullable JSONObject json) {
112112
bundle.putString(key, (String) value);
113113
}
114114
}
115-
} catch (JSONException exception) {
115+
} catch (Exception exception) {
116116
exception.printStackTrace();
117117
}
118118
return bundle;

0 commit comments

Comments
 (0)