planetfederal / qgis-suite-plugin

GNU General Public License v2.0
25 stars 17 forks source link

Error creating Layer Group #14

Closed jj0hns0n closed 11 years ago

jj0hns0n commented 11 years ago

Received this error when trying to create a Layer Group via the UI.

An error has occured while executing Python code:

Traceback (most recent call last): File "/Users/jj0hns0n/.qgis2/python/plugins/opengeo/gui/explorer.py", line 287, in finish item.refreshContent() File "/Users/jj0hns0n/.qgis2/python/plugins/opengeo/gui/exploreritems.py", line 20, in refreshContent self.populate() File "/Users/jj0hns0n/.qgis2/python/plugins/opengeo/gui/exploreritems.py", line 109, in populate groupItem.populate() File "/Users/jj0hns0n/.qgis2/python/plugins/opengeo/gui/exploreritems.py", line 189, in populate for layer in self.element.layers: TypeError: 'NoneType' object is not iterable

Python version: 2.7.4 (default, May 10 2013, 08:56:29) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)]

jj0hns0n commented 11 years ago

This appears to cause all subsequent refreshes to just fail

An error has occured while executing Python code:

Traceback (most recent call last): File "/Users/jj0hns0n/.qgis2/python/plugins/opengeo/gui/exploreritems.py", line 20, in refreshContent self.populate() File "/Users/jj0hns0n/.qgis2/python/plugins/opengeo/gui/exploreritems.py", line 157, in populate self.groupsItem.populate() File "/Users/jj0hns0n/.qgis2/python/plugins/opengeo/gui/exploreritems.py", line 109, in populate groupItem.populate() File "/Users/jj0hns0n/.qgis2/python/plugins/opengeo/gui/exploreritems.py", line 189, in populate for layer in self.element.layers: TypeError: 'NoneType' object is not iterable

Python version: 2.7.4 (default, May 10 2013, 08:56:29) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)]

volaya commented 11 years ago

seems to be related to creating/using empty groups. Should be fixed now