On Sat, 24 Oct 2009, Lee Bolding wrote: > Where addComment is expecting a Comment object, but for some reason or > another it gets supplied something else (most commonly NULL or FALSE, > because a previous call to retrieve or create the Comment object > returned NULL/FALSE). > > If you use sfErrorHandlerPlugin, it can catch most of these errors for > you
What I do is code defensively: check an object is not null before trying to use it. -- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---