Browse Source

Fixed null exception in command document generator

master
Chris Gregan 7 years ago
parent
commit
4d07b5ff0d
  1. 4
      Assets/Fungus/Scripts/Editor/BlockEditor.cs

4
Assets/Fungus/Scripts/Editor/BlockEditor.cs

@ -725,8 +725,8 @@ namespace Fungus.EditorUtils
EventHandlerInfoAttribute info = EventHandlerEditor.GetEventHandlerInfo(type); EventHandlerInfoAttribute info = EventHandlerEditor.GetEventHandlerInfo(type);
if (info != null && if (info != null &&
info.Category == category || (info.Category == category ||
info.Category == "" && category == "Core") (info.Category == "" && category == "Core")))
{ {
markdown += "# " + info.EventHandlerName + " # {#" + info.EventHandlerName.Replace(" ", "") + "}\n"; markdown += "# " + info.EventHandlerName + " # {#" + info.EventHandlerName.Replace(" ", "") + "}\n";
markdown += info.HelpText + "\n\n"; markdown += info.HelpText + "\n\n";

Loading…
Cancel
Save