From 186b1ce72bc71e327a7a04e0eb88934634685b4a Mon Sep 17 00:00:00 2001 From: cra0zy Date: Thu, 1 Mar 2018 15:04:08 +0100 Subject: [PATCH] Fix a null reference exception --- Source/Libs/GLibSharp/Timeout.cs | 3 +++ build.cake | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Libs/GLibSharp/Timeout.cs b/Source/Libs/GLibSharp/Timeout.cs index 5d7992a00..b2f2e03e4 100644 --- a/Source/Libs/GLibSharp/Timeout.cs +++ b/Source/Libs/GLibSharp/Timeout.cs @@ -45,6 +45,9 @@ namespace GLib { public bool Handler () { try { + if (real_handler == null) + return false; + TimeoutHandler timeout_handler = (TimeoutHandler) real_handler; bool cont = timeout_handler (); diff --git a/build.cake b/build.cake index be72b1080..9f0d82ace 100644 --- a/build.cake +++ b/build.cake @@ -6,7 +6,7 @@ // VARS Settings.Cake = Context; -Settings.Version = "3.22.24.30"; +Settings.Version = "0.0.0.7"; Settings.BuildTarget = Argument("BuildTarget", "Default"); Settings.Assembly = Argument("Assembly", "");