Skip to content

Commit

Permalink
fix: cdp trackCustomEvent add eventName check
Browse files Browse the repository at this point in the history
  • Loading branch information
YoloMao authored and tianhui12 committed Feb 24, 2022
1 parent cbf2abe commit 329d577
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public void trackCustomEvent(String eventName, String itemKey, String itemId) {

public void trackCustomEvent(String eventName, Map<String, String> attributes, String itemKey, String itemId) {
if (!isInited) return;
if (TextUtils.isEmpty(itemKey) || TextUtils.isEmpty(itemId)) {
Logger.e(TAG, "trackCustomEvent: itemKey or itemId is NULL");
if (TextUtils.isEmpty(eventName) || TextUtils.isEmpty(itemKey) || TextUtils.isEmpty(itemId)) {
Logger.e(TAG, "trackCustomEvent: eventName, itemKey or itemId is NULL");
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public void trackCustomEvent(String eventName, String itemKey, String itemId) {

public void trackCustomEvent(String eventName, Map<String, String> attributes, String itemKey, String itemId) {
if (!isInited) return;
if (TextUtils.isEmpty(itemKey) || TextUtils.isEmpty(itemId)) {
Logger.e(TAG, "trackCustomEvent: itemKey or itemId is NULL");
if (TextUtils.isEmpty(eventName) || TextUtils.isEmpty(itemKey) || TextUtils.isEmpty(itemId)) {
Logger.e(TAG, "trackCustomEvent: eventName, itemKey or itemId is NULL");
return;
}

Expand Down

0 comments on commit 329d577

Please sign in to comment.