Null check

This commit is contained in:
Mads Kruse Johnsen 2019-06-06 16:11:08 +02:00 committed by cra0zy
parent 2e1882d31e
commit 99960543b1

View file

@ -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);
}