This is an automated email from the ASF dual-hosted git repository.

lynwee pushed a commit to branch cp10
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit 21dd4d442e6f59146b1f3509f48b87cfa4063c90
Author: d4x1 <[email protected]>
AuthorDate: Mon Aug 19 21:03:15 2024 +0800

    fix(e2e): fix errors
---
 backend/server/services/pipeline_notification.go | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/backend/server/services/pipeline_notification.go 
b/backend/server/services/pipeline_notification.go
index f8cea3929..2c25c44ce 100644
--- a/backend/server/services/pipeline_notification.go
+++ b/backend/server/services/pipeline_notification.go
@@ -42,5 +42,8 @@ func GetPipelineNotificationService() 
PipelineNotificationService {
        if customPipelineNotificationService != nil {
                return customPipelineNotificationService
        }
-       return defaultNotificationService
+       if defaultNotificationService != nil {
+               return defaultNotificationService
+       }
+       return nil
 }

Reply via email to