Fix null pointer dereference in status.ByIndex #628

Merged
mbfr merged 7 commits from fix-status-nullptr into master 2020-08-14 13:19:21 -05:00

7 Commits

Author SHA1 Message Date
Michael Boulton 1a200ed2e8
Fix error return 2020-08-14 15:10:09 +01:00
michael boulton e22f95bd3c
Update status_test.go
Early exit test if preconditions are not met

Co-authored-by: lhchavez <lhchavez@lhchavez.com>
2020-08-14 15:08:13 +01:00
michael boulton a63936f29e
Update status_test.go
Move setting struct values into struct initialisation

Co-authored-by: lhchavez <lhchavez@lhchavez.com>
2020-08-14 15:07:37 +01:00
michael boulton faa4e293ba
Update status.go
Add suggested error message on return

Co-authored-by: lhchavez <lhchavez@lhchavez.com>
2020-08-14 15:05:34 +01:00
Michael Boulton 1e38283adb
Fix test failure 2020-08-14 11:11:35 +01:00
Michael Boulton a2b8cf952a
Add test for no statuses 2020-08-14 11:05:58 +01:00
Michael Boulton 5b2c47f6b7
Fix null pointer dereference in getting status by index 2020-08-14 10:56:14 +01:00