Skip to content
Permalink
Browse files
[Processing] prevent error when running escapeAndJoin with empty para…
…m string

fixes #16200
  • Loading branch information
volaya committed Apr 4, 2017
1 parent 7a12d5f commit 85e83e14708fd2c3886ac8a97d53a46c66e85430
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/algs/gdal/GdalUtils.py
@@ -180,7 +180,7 @@ def getFormatShortNameFromFilename(filename):
def escapeAndJoin(strList):
joined = ''
for s in strList:
if s[0] != '-' and ' ' in s:
if s and s[0] != '-' and ' ' in s:
escaped = '"' + s.replace('\\', '\\\\').replace('"', '\\"') \
+ '"'
else:

0 comments on commit 85e83e1

Please sign in to comment.