chore: Fix analytics NPE for checkout remote branch flow (#18466)

This commit is contained in:
Anagh Hegde 2022-11-26 17:37:07 +05:30 committed by GitHub
parent f8580477ad
commit a00dedb625
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
});