File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -604,6 +604,12 @@ find_portal_implementation_iface (const PortalInterface *iface)
604
604
605
605
impl = find_portal_implementation_by_name (portal );
606
606
607
+ if (!impl )
608
+ {
609
+ g_info ("Requested backend %s does not exist. Skipping..." , portal );
610
+ continue ;
611
+ }
612
+
607
613
if (!portal_impl_supports_iface (impl , iface -> dbus_name ))
608
614
{
609
615
g_info ("Requested backend %s.portal does not support %s. Skipping..." , impl -> source , iface -> dbus_name );
@@ -637,7 +643,7 @@ find_default_implementation_iface (const char *interface)
637
643
638
644
impl = find_portal_implementation_by_name (portal );
639
645
640
- if (portal_impl_supports_iface (impl , interface ))
646
+ if (impl && portal_impl_supports_iface (impl , interface ))
641
647
return impl ;
642
648
}
643
649
return NULL ;
You can’t perform that action at this time.
0 commit comments