From a00dedb62581c6ea764a510e5c3bdc8da17b75e8 Mon Sep 17 00:00:00 2001 From: Anagh Hegde Date: Sat, 26 Nov 2022 17:37:07 +0530 Subject: [PATCH] chore: Fix analytics NPE for checkout remote branch flow (#18466) --- .../java/com/appsmith/server/services/ce/GitServiceCEImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/GitServiceCEImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/GitServiceCEImpl.java index 27c55c3a52..626a943050 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/GitServiceCEImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/GitServiceCEImpl.java @@ -1297,7 +1297,7 @@ public class GitServiceCEImpl implements GitServiceCE { .flatMap(application1 -> addAnalyticsForGitOperation( AnalyticsEvents.GIT_CHECKOUT_REMOTE_BRANCH.getEventName(), application1, - application1.getGitApplicationMetadata().getIsRepoPrivate() + Boolean.TRUE.equals(application1.getGitApplicationMetadata().getIsRepoPrivate()) )) .map(responseUtils::updateApplicationWithDefaultResources); });