mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-03 16:25:29 +00:00
Null check
This commit is contained in:
parent
2e1882d31e
commit
99960543b1
|
@ -112,7 +112,7 @@ namespace GLib {
|
|||
try {
|
||||
GCHandle gch = (GCHandle) data;
|
||||
ToggleRef tref = (ToggleRef)gch.Target;
|
||||
tref.Toggle (is_last_ref);
|
||||
tref?.Toggle (is_last_ref);
|
||||
} catch (Exception e) {
|
||||
ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue