fix issue introduced in 72f3b2b

This commit is contained in:
Maximilian Hils 2016-07-06 12:14:48 -07:00
parent 72f3b2bb17
commit 38fd1d3ad7
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class StateObject(netlib.basetypes.Serializable):
state = state.copy()
for attr, cls in six.iteritems(self._stateobject_attributes):
val = state.pop(attr)
if state.get(attr) is None:
if val is None:
setattr(self, attr, val)
else:
curr = getattr(self, attr)