Gtk2Hs: Ticket #1201: Hover signal segfault <p> hoveringOverLink
signal sometimes (when leaving the hover) have NULL pointers for
CString and should not be converted as String but as Maybe
String as the comment suggest. </p> en-us Gtk2Hs Trac 0.11.1
guest Thu, 26 Aug 2010 21:09:28 GMT comment added <p> fixing the
gtk2hs-generator tools to recognize a MSTRING is a big change,
and as a workaround changing the marshExec for TString to map
null CString as empty string permits a safe default (despite
slighty wrong). </p> <p> in callbackGen/HookGenerator.hs:299
marshExec Tstring arg _ body = indent 5. ss " (if " . arg . ss "
== nullPtr then return \"\" else ". ss "peekUTFString ". arg. ss
" ) " .ss " &gt;&gt;= \\". arg. ss "\' -&gt;". </p> Ticket