Selaa lähdekoodia

don't chrash if keywords are empty
(merge https://trac.osgeo.org/grass/changeset/39155 from devbr6)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39156 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 15 vuotta sitten
vanhempi
commit
109dc97383
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      gui/wxpython/gui_modules/menudata.py

+ 3 - 2
gui/wxpython/gui_modules/menudata.py

@@ -174,8 +174,9 @@ class Data:
                     if child.tag == 'command':
                         module = child.text
                     if child.tag == 'keywords':
-                        keywords = child.text.split(',')
-                
+                        if child.text:
+                            keywords = child.text.split(',')
+                    
                 if module:
                     modules[module] = { 'desc': description,
                                         'keywords' : keywords }