Skip to content

Commit

Permalink
Deserialize only if payload is not None (#48)
Browse files Browse the repository at this point in the history
Deserialize only if payload is not None. Fixes #47
  • Loading branch information
nikhilym authored Nov 20, 2018
2 parents 240e15f + 8d0b503 commit 1e6a1d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ask-sdk-core/ask_sdk_core/serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ def __deserialize(self, payload, obj_type):
:return: deserialized object
:rtype: T
"""
if payload is None:
return None

if type(obj_type) == str:
if obj_type.startswith('list['):
# Get object type for each item in the list
Expand Down

0 comments on commit 1e6a1d9

Please sign in to comment.