Merge pull request #25 from cra0zy/fixnull

Fix a null reference exception
This commit is contained in:
Harry 2018-03-01 15:13:40 +01:00 committed by GitHub
commit 5cf280340b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -45,6 +45,9 @@ namespace GLib {
public bool Handler () public bool Handler ()
{ {
try { try {
if (real_handler == null)
return false;
TimeoutHandler timeout_handler = (TimeoutHandler) real_handler; TimeoutHandler timeout_handler = (TimeoutHandler) real_handler;
bool cont = timeout_handler (); bool cont = timeout_handler ();

View file

@ -6,7 +6,7 @@
// VARS // VARS
Settings.Cake = Context; Settings.Cake = Context;
Settings.Version = "3.22.24.30"; Settings.Version = "0.0.0.7";
Settings.BuildTarget = Argument("BuildTarget", "Default"); Settings.BuildTarget = Argument("BuildTarget", "Default");
Settings.Assembly = Argument("Assembly", ""); Settings.Assembly = Argument("Assembly", "");