From d210ef1cd60a37bc98635eb5747576323fe0b831 Mon Sep 17 00:00:00 2001 From: "izaaz.yunus" Date: Mon, 10 Jun 2024 10:28:54 -0700 Subject: [PATCH] fix: catch all exceptions when trying to intercept identifies --- src/main/java/com/amplitude/api/IdentifyInterceptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/amplitude/api/IdentifyInterceptor.java b/src/main/java/com/amplitude/api/IdentifyInterceptor.java index 2728598f..4fc4643c 100644 --- a/src/main/java/com/amplitude/api/IdentifyInterceptor.java +++ b/src/main/java/com/amplitude/api/IdentifyInterceptor.java @@ -105,7 +105,7 @@ private JSONObject getTransferIdentifyEvent() { identifyEvent.getJSONObject("user_properties").put(Constants.AMP_OP_SET, identifyEventUserProperties); dbHelper.removeIdentifyInterceptors(lastIdentifyInterceptorId); return identifyEvent; - } catch (JSONException e) { + } catch (Exception e) { AmplitudeLog.getLogger().w(TAG, "Identify Merge error: " + e.getMessage()); } return null;