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

Add Invalid Layer to QgsLayerTreeGroup crashes QGIS 2.6 #19945

Closed
qgib opened this issue Nov 20, 2014 · 2 comments
Closed

Add Invalid Layer to QgsLayerTreeGroup crashes QGIS 2.6 #19945

qgib opened this issue Nov 20, 2014 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@qgib
Copy link
Contributor

qgib commented Nov 20, 2014

Author Name: Akbar Gumbira (Akbar Gumbira)
Original Redmine Issue: 11703
Affected QGIS version: 2.6.0

Assignee: Martin Dobias


Hi, I know that this isn't the expected scenario. But if we feed QgsLayerTreeGroup with invalid layer, e.g just give it None, it will crash QGIS.

Simple script that can be run in QGIS Python Console :

a = QgsLayerTreeGroup()
a.addLayer(None)

I think throwing Exception is better than not handling it at all

@qgib
Copy link
Contributor Author

qgib commented Nov 23, 2014

Author Name: Tim Sutton (Tim Sutton)


  • assigned_to_id was changed from Tim Sutton to Martin Dobias

@qgib
Copy link
Contributor Author

qgib commented Jan 12, 2015

Author Name: Martin Dobias (@wonder-sk)


Fixed in changeset "f28a6d1d7d426286f67b94b094a6653aec69f0a3".


  • status_id was changed from Open to Closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

No branches or pull requests

1 participant