From 4d07b5ff0d71693543bdb7dd78daf0cca87b3f4e Mon Sep 17 00:00:00 2001 From: Chris Gregan Date: Mon, 6 Nov 2017 22:16:17 +0000 Subject: [PATCH] Fixed null exception in command document generator --- Assets/Fungus/Scripts/Editor/BlockEditor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Fungus/Scripts/Editor/BlockEditor.cs b/Assets/Fungus/Scripts/Editor/BlockEditor.cs index 67763550..626b2b8a 100644 --- a/Assets/Fungus/Scripts/Editor/BlockEditor.cs +++ b/Assets/Fungus/Scripts/Editor/BlockEditor.cs @@ -725,8 +725,8 @@ namespace Fungus.EditorUtils EventHandlerInfoAttribute info = EventHandlerEditor.GetEventHandlerInfo(type); if (info != null && - info.Category == category || - info.Category == "" && category == "Core") + (info.Category == category || + (info.Category == "" && category == "Core"))) { markdown += "# " + info.EventHandlerName + " # {#" + info.EventHandlerName.Replace(" ", "") + "}\n"; markdown += info.HelpText + "\n\n";