summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterpathfindingconsole.cpp
diff options
context:
space:
mode:
authorTodd Stinson <stinson@lindenlab.com>2012-03-05 17:55:33 -0800
committerTodd Stinson <stinson@lindenlab.com>2012-03-05 17:55:33 -0800
commit8ad01dd79a2c215895017475bcfd62808f8893be (patch)
tree04f1bda6d5e291e12e0770377dc0575bf37359d1 /indra/newview/llfloaterpathfindingconsole.cpp
parentf0e6ad509a65c1f888f9af6c3421e7ec024100cb (diff)
Wrapping all cases of LLPathingLib::getInstance in null pointer checks.
Diffstat (limited to 'indra/newview/llfloaterpathfindingconsole.cpp')
-rw-r--r--indra/newview/llfloaterpathfindingconsole.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llfloaterpathfindingconsole.cpp b/indra/newview/llfloaterpathfindingconsole.cpp
index eee5d6860d..37bf937cd1 100644
--- a/indra/newview/llfloaterpathfindingconsole.cpp
+++ b/indra/newview/llfloaterpathfindingconsole.cpp
@@ -265,7 +265,10 @@ void LLFloaterPathfindingConsole::onClose(bool pIsAppQuitting)
mNavMeshZoneSlot.disconnect();
}
- //mNavMeshZone.disable();
+ if (LLPathingLib::getInstance() != NULL)
+ {
+ mNavMeshZone.disable();
+ }
LLFloater::onClose(pIsAppQuitting);
setHeartBeat( false );