On Mon, Aug 16, 2010 at 9:52 AM, Michael Pfeiffer <michael.w.pfeiffer@xxxxxxxxx> wrote: >> And doing an assert would be a bit silly. If the only way to avoid a crash >> is to crash before it, why bother adding code for that ? > > Using an assertion ensures the crash to happen near to cause of the problem. > I wouldn't call that silly. Since it's likely going to crash 3 lines later when its dereferenced anyway, so i'm not sure it's going to matter so much in this case.