Skip to content

Commit 8d0b503

Browse files
committed
Check the payload values to be not None, before deserailizing
1 parent 240e15f commit 8d0b503

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ask-sdk-core/ask_sdk_core/serialize.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ def __deserialize(self, payload, obj_type):
143143
:return: deserialized object
144144
:rtype: T
145145
"""
146+
if payload is None:
147+
return None
148+
146149
if type(obj_type) == str:
147150
if obj_type.startswith('list['):
148151
# Get object type for each item in the list

0 commit comments

Comments
 (0)