[haiku-commits] Re: r38135 - haiku/trunk/src/preferences/print

  • From: Urias McCullough <umccullough@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 16 Aug 2010 11:40:32 -0700

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.

Other related posts: