Fix Huawei issue on nil pointer dereference (#660)
This commit is contained in:
parent
4abda2a0cb
commit
fb961a1977
|
@ -123,7 +123,7 @@ func GetHuaweiNotification(req *PushNotification) (*model.MessageRequest, error)
|
|||
}
|
||||
|
||||
setDefaultAndroidNotification := func() {
|
||||
if msgRequest.Message.Android == nil {
|
||||
if msgRequest.Message.Android.Notification == nil {
|
||||
msgRequest.Message.Android.Notification = model.GetDefaultAndroidNotification()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue