Closed mcktr closed 4 years ago
Fixes a nil pointer dereference in the smart check methods. The AIN needs to be set for the check methods.
$ go run cmd/check_fritz/*.go -H 192.168.178.1 -p secret -m smart_heatertemperatur panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x77aabb]
$ go run cmd/check_fritz/*.go -H 192.168.178.1 -p secret -m smart_heatertemperatur UNKNOWN - a AIN needs to be set for this check method exit status 3
fixes #88
Fixes a nil pointer dereference in the smart check methods. The AIN needs to be set for the check methods.
before
after
fixes #88