Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dlg_import_vector.py #41173

Merged
merged 2 commits into from
Jan 27, 2021
Merged

Update dlg_import_vector.py #41173

merged 2 commits into from
Jan 27, 2021

Conversation

sickel
Copy link
Contributor

@sickel sickel commented Jan 25, 2021

Description

This change will make the db managers import function more robust towards (some types of) invalid layers. cf issue #41152
Before trying to read the type of the layer when compling them for the drop down box, it checks if the layer value is of NoneType. This should not happen, but at least for some usage of the open layer plugin, a layer may end up as none type.

I have observed this issue in several earlier versions of qgis and the code has not been changed since at least 3.10 LTR, so it could, and probably should be backported to 3.10

Fixes #41152

This change will make the db managers import function more robust towards (some types of) invalid layers. cf issue qgis#41152
@github-actions github-actions bot added this to the 3.18.0 milestone Jan 25, 2021
@nyalldawson nyalldawson merged commit ead85b1 into qgis:master Jan 27, 2021
@nyalldawson
Copy link
Collaborator

Thanks @sickel !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Database manager cannot import layer if any layer is None
2 participants