From b18f99ff8e74bb81cf9a0bc84befc2bca37a19a9 Mon Sep 17 00:00:00 2001 From: arifBurakDemiray Date: Wed, 27 Sep 2023 15:18:35 +0300 Subject: [PATCH] fix: add is init check --- sdk-java/src/main/java/ly/count/sdk/java/Countly.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sdk-java/src/main/java/ly/count/sdk/java/Countly.java b/sdk-java/src/main/java/ly/count/sdk/java/Countly.java index b1917f0a9..58d027479 100644 --- a/sdk-java/src/main/java/ly/count/sdk/java/Countly.java +++ b/sdk-java/src/main/java/ly/count/sdk/java/Countly.java @@ -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(); }