Bug report #15719

object of type 'NoneType' has no len()

Added by Sandro Santilli almost 3 years ago. Updated almost 3 years ago.

Status:Closed
Priority:Normal
Assignee:Sandro Santilli
Category:Processing/Core
Affected QGIS version:master_2 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:23642

Description

Attempts to use the "Import Vector into PostGIS database" tool of Processing results in this error:

Traceback (most recent call last):
File "/usr/src/qgis/build/2.18/output/python/plugins/processing/core/GeoAlgorithm.py", line 203, in execute
self.processAlgorithm(progress)
File "/usr/src/qgis/build/2.18/output/python/plugins/processing/algs/gdal/ogr2ogrtopostgislist.py", line 166, in processAlgorithm
GdalAlgorithm.processAlgorithm(self, progress)
File "/usr/src/qgis/build/2.18/output/python/plugins/processing/algs/gdal/GdalAlgorithm.py", line 51, in processAlgorithm
commands = self.getConsoleCommands()
File "/usr/src/qgis/build/2.18/output/python/plugins/processing/algs/gdal/ogr2ogrtopostgislist.py", line 213, in getConsoleCommands
if len(shapeEncoding) > 0:
TypeError: object of type 'NoneType' has no len()

2.16 and 2.14 are not affected, master_2 (2.18-dev) and master are.

Associated revisions

Revision 17510f09
Added by Sandro Santilli almost 3 years ago

[processing] Fix handling of None shapeEncoding

Fixes #15719 -- object of type 'NoneType' has no len()

Revision 2fc41801
Added by Sandro Santilli almost 3 years ago

[processing] Fix handling of None shapeEncoding

Fixes #15719 -- object of type 'NoneType' has no len()

History

#1 Updated by Sandro Santilli almost 3 years ago

  • Status changed from In Progress to Closed

Also available in: Atom PDF