Skip to content


[processing] minor change in ParameterFile to handle None values
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed May 21, 2014
1 parent 6ea91c4 commit dd47b61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/plugins/processing/parameters/
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ def serialize(self):

def setValue(self, obj):
self.value = str(obj)
if self.value.strip() == '':
if self.value.strip() == '' or self.value is None:
if not self.optional:
return False
self.value = ''
return True

def deserialize(self, s):
Expand Down

0 comments on commit dd47b61

Please sign in to comment.