aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/CompilerServices/CompilerServices.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2017-05-25 22:11:42 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2017-05-25 22:11:42 +0200
commitdf9a7fe88ce844de7dbbc0386a2d584eea90885d (patch)
treed4ea5ac2a7d0567c1b61c0ad8cfabcd076f8323f /src/CompilerServices/CompilerServices.cs
parent0d0496908cf21c770acce2a49c2b53e1d882d235 (diff)
evdev Device class, test with keymapping
Diffstat (limited to 'src/CompilerServices/CompilerServices.cs')
-rw-r--r--src/CompilerServices/CompilerServices.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CompilerServices/CompilerServices.cs b/src/CompilerServices/CompilerServices.cs
index 05dc3652..9961c52d 100644
--- a/src/CompilerServices/CompilerServices.cs
+++ b/src/CompilerServices/CompilerServices.cs
@@ -629,6 +629,10 @@ namespace Crow
/// Removes delegate from event handler by name
/// </summary>
static void removeEventHandlerByName(object instance, string eventName, string delegateName){
+ if (instance == null){
+ Debug.WriteLine ("RemoveHandlerByName: instance is NULL for Event '" + eventName);
+ return;
+ }
Type t = instance.GetType ();
FieldInfo fiEvt = getEventHandlerField (t, eventName);
if (fiEvt == null) {