在 Mon, 06 Apr 2009 19:33:31 +0800,Qian Xu <quian...@stud.tu-ilmenau.de> 写道:


if (isNull(foo) ||
    isNull(foo.getBar) ||
    isNull(foo.getBar.getBar2)
{
  return false;
}

Update: If minimal evaluation is not always enabled, and foo.getBar is NULL.
I will get a segfault when evaluating foo.getBar.getBar2.




huh? post the whole code plz. It should work.

--
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/

Reply via email to