Skip to content
Permalink
Browse files
[processing] minor change in ParameterFile to handle None values
  • Loading branch information
volaya committed May 21, 2014
1 parent 6ea91c4 commit dd47b61befac58f81dd0cb2e694a6b7086a085bb
Showing with 3 additions and 1 deletion.
  1. +3 −1 python/plugins/processing/parameters/ParameterFile.py
@@ -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):

0 comments on commit dd47b61

Please sign in to comment.