OSDN Git Service

Fix the crash when map button was clicked too soon
authorLatif Khalifa <latifer@streamgrid.net>
Sat, 2 Jul 2011 23:01:33 +0000 (23:01 +0000)
committerLatif Khalifa <latifer@streamgrid.net>
Sat, 2 Jul 2011 23:01:33 +0000 (23:01 +0000)
git-svn-id: https://radegast.googlecode.com/svn/trunk@934 f7a694da-4d33-11de-9ad6-1127a62b9fcd

Radegast/GUI/Dialogs/MainForm.cs

index d66954b..f9de787 100644 (file)
@@ -1313,6 +1313,8 @@ namespace Radegast
 
         private void tbtnMap_Click(object sender, EventArgs e)
         {
+            if (MapTab == null) return; // too soon!
+
             ToggleHidden("map");
             if (!MapTab.Hidden)
                 MapToCurrentLocation();