diff --git a/boot/boot.js b/boot/boot.js index 7a0770021..b83779dd5 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -1256,7 +1256,7 @@ $tw.loadPluginFolder = function(filepath,excludeRegExp) { } } // Give the plugin the same version number as the core if it doesn't have one - if(!("version" in pluginInfo)) { + if(pluginInfo && !("version" in pluginInfo)) { pluginInfo.version = $tw.packageInfo.version; } // Save the plugin tiddler