Yousong Zhou
aad7dddabb
lbbackend: fix nil ref when getting details
Return arguments of lbbackend.getVpc() can be both nil
[E 200224 10:13:18 httperrors.HTTPError(httperrors.go:53)] Send error {"fields":["runtime error: invalid memory address or nil pointer dereference"],"id":"Internal server error: {0}"}
...
panic(0x27da0c0, 0x57f4ff0)
/usr/local/go/src/runtime/panic.go:522 +0x1b5
yunion.io/x/onecloud/pkg/compute/models.(*SLoadbalancerBackend).GetExtraDetails(0xc0002af680, 0x33cde20, 0xc0010e61e0, 0x34246c0, 0xc008893de0, 0x341d940, 0xc012fe69d0, 0x1, 0x0, 0x0, ...)
/data/git/yunion-build/work/go/src/yunion.io/x/onecloud/pkg/compute/models/loadbalancerbackends.go:314 +0x37c
reflect.Value.call(0x2d87a00, 0xc0002af680, 0x8a13, 0x2db0aa8, 0x4, 0xc0044ad680, 0x4, 0x4, 0x2bd5d60, 0xc002a29cf0, ...)
/usr/local/go/src/reflect/value.go:447 +0x461
reflect.Value.Call(0x2d87a00, 0xc0002af680, 0x8a13, 0xc0044ad680, 0x4, 0x4, 0x2d87a00, 0xc0002af680, 0x16)
/usr/local/go/src/reflect/value.go:308 +0xa4
yunion.io/x/onecloud/pkg/cloudcommon/db.callFunc(0x2d87a00, 0xc0002af680, 0x8a13, 0xc000951688, 0x4, 0x4, 0xc0002af680, 0x8a13, 0x2dc0527, 0xb, ...)
/data/git/yunion-build/work/go/src/yunion.io/x/onecloud/pkg/cloudcommon/db/caller.go:78 +0x397
...
[I 200224 10:13:18 appsrv.(*Application).ServeHTTP(appsrv.go:237)] MfQCvNyik-obRBzFjFZy5ARfXcE= 500 5c1d82 GET /loadbalancerbackends?backend_group=Yunion-Tools&details=true&limit=20&offset=0 (10.40.156.64:57606) 57.90ms
Fixes 76d974f6d ("feature: api -> response struct")
2020-02-24 10:22:56 +08:00
..
2020-02-07 17:54:48 +08:00
2020-02-03 10:22:44 +08:00
2020-02-07 17:54:48 +08:00
2020-02-07 17:54:48 +08:00
2020-01-13 13:19:47 +08:00
2020-02-07 17:54:48 +08:00
2020-01-13 13:19:47 +08:00
2020-02-07 17:54:48 +08:00
2020-02-19 11:44:24 +08:00
2020-02-03 10:22:44 +08:00
2020-02-07 17:54:48 +08:00
2020-01-09 11:07:33 +08:00
2019-10-28 06:22:17 +00:00
2020-02-17 22:15:08 +08:00
2020-02-07 17:54:48 +08:00
2020-02-03 10:22:44 +08:00
2020-02-07 17:54:48 +08:00
2020-01-13 13:19:47 +08:00
2020-02-03 10:22:44 +08:00
2020-01-14 04:17:15 +08:00
2019-10-28 06:22:17 +00:00
2019-10-28 06:22:17 +00:00
2020-02-07 17:54:48 +08:00
2020-02-03 10:22:44 +08:00
2020-02-07 17:54:48 +08:00
2020-01-14 04:17:15 +08:00
2020-02-07 17:54:48 +08:00
2020-01-18 18:35:54 +08:00
2020-01-14 04:17:15 +08:00
2020-02-03 10:22:44 +08:00
2020-02-07 17:54:48 +08:00
2020-01-13 13:19:47 +08:00
2020-02-03 10:22:44 +08:00
2020-02-07 17:54:48 +08:00
2020-02-07 17:54:48 +08:00
2019-12-12 17:41:59 +08:00
2020-02-07 17:54:48 +08:00
2020-02-07 17:54:48 +08:00
2019-06-03 17:19:27 +08:00
2020-02-07 17:54:48 +08:00
2020-02-07 17:54:48 +08:00
2020-02-18 11:33:13 +08:00
2020-01-10 10:27:41 +08:00
2020-02-07 17:54:48 +08:00
2019-05-31 13:56:02 +08:00
2020-02-07 17:54:48 +08:00
2020-01-15 20:23:31 +08:00
2019-06-03 17:19:27 +08:00
2020-02-07 17:54:48 +08:00
2020-02-19 14:49:26 +08:00
2019-06-03 17:19:27 +08:00
2019-12-12 11:31:41 +08:00
2019-10-28 06:22:17 +00:00
2019-11-01 19:47:19 +08:00
2020-02-07 17:54:48 +08:00
2020-02-14 20:45:30 +08:00
2020-02-07 17:54:48 +08:00
2020-02-07 17:54:48 +08:00
2020-02-07 17:54:48 +08:00
2019-10-31 19:51:02 +08:00
2019-10-31 19:51:02 +08:00
2020-02-07 17:54:48 +08:00
2020-02-07 17:54:48 +08:00
2020-02-03 10:22:44 +08:00
2019-11-19 07:12:45 +00:00
2019-05-31 13:56:02 +08:00
2020-02-07 17:54:48 +08:00
2020-02-18 20:54:12 +08:00
2020-02-07 17:54:48 +08:00
2020-02-03 10:22:44 +08:00
2020-02-03 10:22:44 +08:00
2020-02-17 22:15:08 +08:00
2019-12-11 08:20:55 +00:00
2020-02-24 10:22:56 +08:00
2020-02-07 17:54:48 +08:00
2020-02-07 17:54:48 +08:00
2020-02-07 17:54:48 +08:00
2020-02-07 17:54:48 +08:00
2020-02-03 10:22:44 +08:00
2020-02-03 10:22:44 +08:00
2020-02-17 22:15:08 +08:00
2020-02-17 22:15:08 +08:00
2020-02-07 17:54:48 +08:00
2020-02-17 22:15:08 +08:00
2020-02-17 22:15:08 +08:00
2020-02-07 17:54:48 +08:00
2020-02-03 10:22:44 +08:00
2020-02-07 17:54:48 +08:00
2020-02-03 10:22:44 +08:00
2020-02-11 16:49:36 +08:00
2019-11-05 20:00:56 +08:00
2019-10-12 19:18:42 +08:00
2020-02-03 10:22:44 +08:00
2019-07-15 22:54:40 +08:00
2020-02-07 17:54:48 +08:00
2020-02-07 17:54:48 +08:00
2020-02-06 01:45:15 +08:00
2019-12-12 11:31:46 +08:00
2020-02-06 01:45:15 +08:00
2020-02-06 01:45:15 +08:00
2020-02-17 22:15:08 +08:00
2020-02-06 01:45:15 +08:00
2020-02-07 17:54:48 +08:00
2020-02-07 17:54:48 +08:00
2020-02-07 17:54:48 +08:00
2020-02-07 17:54:48 +08:00
2020-02-07 17:54:48 +08:00
2020-02-03 10:22:44 +08:00
2020-01-14 04:17:15 +08:00
2020-02-03 10:22:44 +08:00
2020-01-14 04:17:15 +08:00
2020-01-09 11:07:33 +08:00
2020-02-07 17:54:48 +08:00
2019-11-18 20:50:43 +08:00
2020-02-07 17:54:48 +08:00
2020-02-03 10:22:44 +08:00
2020-02-07 17:54:48 +08:00
2020-02-07 17:54:48 +08:00
2019-11-19 01:44:08 +08:00
2020-02-07 17:54:48 +08:00
2020-02-07 17:54:48 +08:00
2020-01-08 11:54:57 +08:00
2020-02-07 17:54:48 +08:00
2020-02-07 17:54:48 +08:00
2019-07-01 11:39:48 +08:00
2019-12-12 11:31:41 +08:00
2019-05-31 13:56:02 +08:00
2020-02-07 17:54:48 +08:00
2020-02-06 01:45:15 +08:00
2020-01-03 13:58:04 +08:00
2020-02-03 10:22:44 +08:00
2020-02-07 17:54:48 +08:00