Kristian Kilpi wrote: > The problem is that > > assert(obj); > > does not first check if 'obj' is null. Yes it does, it's just that the hardware does the check, and gives you a seg fault exception if it is null.