[Uml-devel] [Patch] Zero pointer ignore

Ralf Habacker ralf.habacker at freenet.de
Thu Jan 15 23:31:12 UTC 2009


Hi,

in the umbrello code there are several places where zero pointer in 
QList based lists are ignored. On win32 there are additional places 
where zero pointers results in to seg fault crashes. After digging into 
the source a while it is currently not clear where those zero pointers 
came from and if those pointers are zero by accident or if they are 
valid by design.

To reduce the number of thoses crashes and to been able to detect those 
case for further fixing, in the appended patch a macro uZeroPtrIgnore(a) 
is defined, which prints a debug message where this ignore occurs and 
continue in the recent loop. This macro is added to places where 
possible zero pointer could happen.

Any problems with this patch ?

Regards
 Ralf











More information about the umbrello-devel mailing list