mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-25 18:37:19 +00:00
Add null check code
This commit is contained in:
parent
bc46149b27
commit
602793dcd0
1 changed files with 1 additions and 1 deletions
|
|
@ -281,7 +281,7 @@ void EIO_List(uv_work_t* req) {
|
|||
}
|
||||
|
||||
stDeviceListItem* devices = GetSerialDevices();
|
||||
if (*(devices->length) > 0) {
|
||||
if (devices != NULL && *(devices->length) > 0) {
|
||||
stDeviceListItem* next = devices;
|
||||
|
||||
for (int i = 0, len = *(devices->length); i < len; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue