From a47836977c33afbe7e9b9c9fc17702f3e6949400 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Thu, 4 Jun 2020 03:46:33 +0300 Subject: [PATCH] ZeppelinPlugin: read null options as { enabled: false } --- backend/src/plugins/ZeppelinPlugin.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/src/plugins/ZeppelinPlugin.ts b/backend/src/plugins/ZeppelinPlugin.ts index e2e46e9b..b8f49a95 100644 --- a/backend/src/plugins/ZeppelinPlugin.ts +++ b/backend/src/plugins/ZeppelinPlugin.ts @@ -124,6 +124,12 @@ export class ZeppelinPlugin< * the plugin, which is why this has to be a static function. */ protected static mergeAndDecodeStaticOptions(options: any): IPluginOptions { + if (options == null) { + options = { + enabled: false, + }; + } + const defaultOptions: any = this.getStaticDefaultOptions(); let mergedConfig = configUtils.mergeConfig({}, defaultOptions.config || {}, options.config || {}); const mergedOverrides = options.replaceDefaultOverrides