From 4370d0263301a60988335e99d37f4b584f160f77 Mon Sep 17 00:00:00 2001
From: prep <prep@lindenlab.com>
Date: Mon, 5 Mar 2012 14:24:25 -0500
Subject: [PATCH] Crash fix on teleport

---
 indra/newview/llfloaterpathfindingconsole.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/newview/llfloaterpathfindingconsole.cpp b/indra/newview/llfloaterpathfindingconsole.cpp
index 2bf46175ee9..5ac79668d24 100644
--- a/indra/newview/llfloaterpathfindingconsole.cpp
+++ b/indra/newview/llfloaterpathfindingconsole.cpp
@@ -248,7 +248,7 @@ void LLFloaterPathfindingConsole::onClose(bool pIsAppQuitting)
 	{
 		mAgentStateSlot.disconnect();
 	}
-	LLPathingLib::getInstance()->cleanupResidual();
+	if ( LLPathingLib::getInstance() ) { LLPathingLib::getInstance()->cleanupResidual(); }
 	LLFloater::onClose(pIsAppQuitting);
 	setHeartBeat( false );
 }
-- 
GitLab