CreateVectorLayer(), setDataProvider("ogr") segfault #10834
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Data Provider
Related to specific vector, raster or mesh data providers
Author Name: crschmidt - (crschmidt -)
Original Redmine Issue: 775
Redmine category:data_provider
Assignee: Martin Dobias
The following commands in the Python console will crash qgis:
import qgis.core as c
l = c.QgsVectorLayer()
l.setDataProvider("ogr")
Backtrace:
The problem is presumably the null qstring provided as the second arg to getProvider, which should be a filename, but isn't.
The text was updated successfully, but these errors were encountered: