rem: if (dcopClient()->isSuspended()) {  QTimer::singleShot( 100, this, SLOT(newInstance()) ); return 0; }
add: if (!kmkernel) return 0;
context: int KMailApplication::newInstance(){  if (dcopClient()->isSuspended())  {    // Try again later.    QTimer::singleShot( 100, this, SLOT(newInstance()) );    return 0;  }  if (!kmkernel->firstInstance() || !kapp->isRestored())    kmkernel->handleCommandLine( true );  kmkernel->setFirstInstance(FALSE);  return 0;}