summaryrefslogtreecommitdiff
path: root/buildstream/element.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/element.py')
-rw-r--r--buildstream/element.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index f3aab5ddb..e03f1e171 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -2329,6 +2329,8 @@ class Element(Plugin):
defaults['public'] = element_public
def __init_defaults(self, plugin_conf):
+ if plugin_conf is None:
+ return
# Defaults are loaded once per class and then reused
#