Merge branch 'dbus-check-null' into 'master'
Check if dbus handler is null before using See merge request World/Phosh/squeekboard!530
This commit is contained in:
@ -159,8 +159,10 @@ mod c {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if let Some(visible) = msg.dbus_visible_set {
|
if let Some(visible) = msg.dbus_visible_set {
|
||||||
|
if dbus_handler != std::ptr::null() {
|
||||||
unsafe { dbus_handler_set_visible(dbus_handler, visible as u8) };
|
unsafe { dbus_handler_set_visible(dbus_handler, visible as u8) };
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if let Some(hints) = msg.layout_hint_set {
|
if let Some(hints) = msg.layout_hint_set {
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|||||||
Reference in New Issue
Block a user