# HG changeset patch # User Tim Ringenbach # Date 1156382037 0 # Node ID b3697123b01a4ebc21514243a7915666a504a869 # Parent 8793fc8f70648c93b1dce1166c66adb15e0a8990 [gaim-migrate @ 17009] don't crash when we're set idle but not logged in. committer: Tailor Script diff -r 8793fc8f7064 -r b3697123b01a libgaim/protocols/yahoo/yahoo.c --- a/libgaim/protocols/yahoo/yahoo.c Wed Aug 23 21:34:43 2006 +0000 +++ b/libgaim/protocols/yahoo/yahoo.c Thu Aug 24 01:13:57 2006 +0000 @@ -3349,6 +3349,9 @@ char *msg = NULL, *msg2 = NULL; GaimStatus *status = NULL; + if (!yd) + return; + if (idle && yd->current_status != YAHOO_STATUS_CUSTOM) yd->current_status = YAHOO_STATUS_IDLE; else if (!idle && yd->current_status == YAHOO_STATUS_IDLE) {