Skip to content

Commit

Permalink
fix: add is init check
Browse files Browse the repository at this point in the history
  • Loading branch information
arifBurakDemiray committed Sep 27, 2023
1 parent 739473d commit b18f99f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sdk-java/src/main/java/ly/count/sdk/java/Countly.java
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,12 @@ public static void onConsentRemoval(Config.Feature... features) {
* @return {@link ModuleFeedback.Feedback} instance.
*/
public ModuleFeedback.Feedback feedback() {
if (!isInitialized()) {
if (L != null) {
L.e("[Countly] SDK is not initialized yet.");
}
return null;
}
return sdk.feedback();
}

Expand Down

0 comments on commit b18f99f

Please sign in to comment.