Doc: Fix nullptr access to QCanBusDevice in snippet


[ChangeLog][QCanBusDevice][Doc] Fixed that the example snippet was
wrongly operating on nullptr instead a valid QCanBusDevice.

Change-Id: Ic7a121b7812bcc49d9c2c9f9e927bf72b8df5bf2
Reviewed-by: André Hartmann <aha_1980@gmx.de>
commitc6202b077733e885447f3efea49605bf8d4bcd90
parent913d5d3475628858ae08ec3b5f1c3625bf01da5b
authorLiu Zheng <liuzheng@uniontech.com>
committerAndré Hartmann <aha_1980@gmx.de>
commit timeWed, 14 Aug 2024 07:48:43 +0000