From b0b9068a9760bcdbbd3d47aa2054d5ac79d16b4d Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Sat, 7 Aug 2010 13:39:31 +0100
Subject: Don't crash if idle at the login screen.

Resolves: #519

diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp
index 20f5901..22e78fe 100644
--- a/Swift/Controllers/MainController.cpp
+++ b/Swift/Controllers/MainController.cpp
@@ -295,6 +295,10 @@ void MainController::sendPresence(boost::shared_ptr<Presence> presence) {
 }
 
 void MainController::handleInputIdleChanged(bool idle) {
+	if (!statusTracker_) {
+		//Haven't logged in yet.
+		return;
+	}
 	if (idle) {
 		if (statusTracker_->goAutoAway()) {
 			if (client_ && client_->isAvailable()) {
-- 
cgit v0.10.2-6-g49f6