瀏覽代碼

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 年之前
父節點
當前提交
109dc97383
共有 1 個文件被更改,包括 3 次插入2 次删除
  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 }