Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix crash in status command
  • Loading branch information
pstorz committed Sep 24, 2018
1 parent 709f470 commit 03b6544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/stored/status.cc
Expand Up @@ -259,7 +259,7 @@ static void get_device_specific_status(DeviceResource *device,
dst.status = GetPoolMemory(PM_MESSAGE);
dst.status_length = 0;

if (device->dev->DeviceStatus(&dst)) {
if (device && device->dev && device->dev->DeviceStatus(&dst)) {
if (dst.status_length > 0) {
sendit(dst.status, dst.status_length, sp);
}
Expand Down

0 comments on commit 03b6544

Please sign in to comment.