Commit 3cde835
committed
[FAB-5339] Add missing nil check to extensions.go
There is a missing nil check, that might make the code
result in a null pointer panic.
For reference: IsDataMsg is:
func (m *GossipMessage) IsDataMsg() bool {
return m.GetDataMsg() != nil
}
Change-Id: I5e20dee188e863b932312a7963f0ca73965c1457
Signed-off-by: yacovm <yacovm@il.ibm.com>1 parent 60926fd commit 3cde835
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
| 524 | + | |
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
| |||
0 commit comments