Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] minor change in ParameterFile to handle None values
  • 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/ParameterFile.py
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
else:
self.value = ''
return True

def deserialize(self, s):
Expand Down

0 comments on commit dd47b61

Please sign in to comment.