planetfederal / qgis-geogiglight-plugin

GNU General Public License v2.0
19 stars 9 forks source link

another way to cause a python error when clicking on "show local changes" #49

Closed gioman closed 8 years ago

gioman commented 8 years ago

same error as in https://github.com/boundlessgeo/qgis-geogiglight-plugin/issues/29 but now is produced by a different workflow:

IndexError: list index out of range

Traceback (most recent call last):
  File "C:/Users/qgis/.qgis2/python/plugins\geogig\layeractions.py", line 224, in showLocalChanges
    dlg = LocalDiffViewerDialog(iface.mainWindow(), layer)
  File "C:/Users/qgis/.qgis2/python/plugins\geogig\gui\dialogs\localdiffviewerdialog.py", line 75, in __init__
    self.computeDiffs()
  File "C:/Users/qgis/.qgis2/python/plugins\geogig\gui\dialogs\localdiffviewerdialog.py", line 139, in computeDiffs
    self.changes = self.localChanges(self.layer)
  File "C:/Users/qgis/.qgis2/python/plugins\geogig\gui\dialogs\localdiffviewerdialog.py", line 199, in localChanges
    qgsfeature = list(layer.getFeatures(request))[0]
IndexError: list index out of range