diff options
Diffstat (limited to 'python/qpid/spec.py')
-rw-r--r-- | python/qpid/spec.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/qpid/spec.py b/python/qpid/spec.py index 8a511bcb3d..3febab7e09 100644 --- a/python/qpid/spec.py +++ b/python/qpid/spec.py @@ -298,7 +298,10 @@ class Field(Metadata): self.docs = docs def default(self): - return Method.DEFAULTS[self.type] + if isinstance(self.type, Struct): + return None + else: + return Method.DEFAULTS[self.type] def get_result(nd, spec): result = nd["result"] |