Bug report #15719
object of type 'NoneType' has no len()
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
[processing] Fix handling of None shapeEncoding
Fixes #15719 -- object of type 'NoneType' has no len()
[processing] Fix handling of None shapeEncoding
Fixes #15719 -- object of type 'NoneType' has no len()
History
#1 Updated by Sandro Santilli about 8 years ago
- Status changed from In Progress to Closed
Fixed in changeset 17510f095202776c5a050e8b3dd2d1b63133e9ef.