From 577a512ce14224eda0433752620a714f0b2f69a6 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 27 Oct 2022 14:49:55 +0100 Subject: [PATCH] trivial: Fix the dell self tests with the new GUsb installed --- libfwupdplugin/fu-usb-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfwupdplugin/fu-usb-device.c b/libfwupdplugin/fu-usb-device.c index b2abbe95a..75a542f55 100644 --- a/libfwupdplugin/fu-usb-device.c +++ b/libfwupdplugin/fu-usb-device.c @@ -835,7 +835,7 @@ FuUsbDevice * fu_usb_device_new(FuContext *ctx, GUsbDevice *usb_device) { #if G_USB_CHECK_VERSION(0, 4, 3) - if (g_usb_device_has_tag(usb_device, "is-transient")) { + if (usb_device != NULL && g_usb_device_has_tag(usb_device, "is-transient")) { g_critical("cannot use a device built using fu_udev_device_find_usb_device() as " "the GUsbContext is different"); return NULL;