Skip to content


Browse files Browse the repository at this point in the history
Make the db managers import function more robust towards (some types …
…of) invalid layers.

Fix #41152
  • Loading branch information
sickel committed Jan 27, 2021
1 parent f3632e8 commit ead85b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/db_manager/
Expand Up @@ -132,7 +132,7 @@ def populateLayers(self):
for nodeLayer in QgsProject.instance().layerTreeRoot().findLayers():
layer = nodeLayer.layer()
# TODO: add import raster support!
if layer.type() == QgsMapLayerType.VectorLayer:
if layer is not None and layer.type() == QgsMapLayerType.VectorLayer:

def deleteInputLayer(self):
Expand Down

0 comments on commit ead85b1

Please sign in to comment.