giscanner: Don't fail on empty GTK-Doc comment blocks
authorDieter Verfaillie <dieterv@optionexplicit.be>
Thu, 3 Jan 2013 07:01:10 +0000 (08:01 +0100)
committerDieter Verfaillie <dieterv@optionexplicit.be>
Wed, 9 Jan 2013 19:29:55 +0000 (20:29 +0100)
commit6b36bb4f78b7005aae8173c9c2712d7ef5d2c442
tree59d37cd3f8fe9c150017115311cfea504dc92ecd
parentd20a932d36107eed33bd57b4ce27868b8e52802e
giscanner: Don't fail on empty GTK-Doc comment blocks

A completely empty GTK-Doc comment block (/**\n*/) resulted
in an unfriendly backtrace, complaining about an
"AttributeError: 'NoneType' object has no attribute 'comment'"

This fixes the issue and adds a test case.

https://bugzilla.gnome.org/show_bug.cgi?id=690850
giscanner/annotationparser.py
tests/scanner/annotationparser/gi/syntax.xml