From d78ce6dc59d5a43050084239a45426b184861ca9 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Thu, 14 Aug 2014 10:22:54 -0700 Subject: [PATCH] Update notification.go fixed nil pointer / panic --- plugin/notify/notification.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/notify/notification.go b/plugin/notify/notification.go index f9b8c9eed..d09273448 100644 --- a/plugin/notify/notification.go +++ b/plugin/notify/notification.go @@ -67,6 +67,9 @@ func (n *Notification) Send(context *model.Request) error { } // send email notifications + if n.GitHub == nil { + n.GitHub = &github.GitHub{} + } if err := n.GitHub.Send(context); err != nil { log.Println(err) }