fix 空指针引用

This commit is contained in:
陈景阳
2019-09-10 14:47:23 +08:00
parent f20039fefd
commit 7e17adf6b0

View File

@@ -10,7 +10,7 @@ type Handler interface {
}
func GetMsgHandler(msg NodeMessage) Handler {
if msg.Type == constants.MsgTypeGetLog {
if msg.Type == constants.MsgTypeGetLog || msg.Type == constants.MsgTypeRemoveLog {
return &Log{
msg: msg,
}