Null check
This commit is contained in:
parent
2e1882d31e
commit
99960543b1
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ namespace GLib {
|
||||||
try {
|
try {
|
||||||
GCHandle gch = (GCHandle) data;
|
GCHandle gch = (GCHandle) data;
|
||||||
ToggleRef tref = (ToggleRef)gch.Target;
|
ToggleRef tref = (ToggleRef)gch.Target;
|
||||||
tref.Toggle (is_last_ref);
|
tref?.Toggle (is_last_ref);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
ExceptionManager.RaiseUnhandledException (e, false);
|
ExceptionManager.RaiseUnhandledException (e, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue