OSDN Git Service

Avoid nullref exception when plugin was turned off manually before radegast shutdown.
authorLatif Khalifa <latifer@streamgrid.net>
Wed, 18 Nov 2009 01:08:05 +0000 (01:08 +0000)
committerLatif Khalifa <latifer@streamgrid.net>
Wed, 18 Nov 2009 01:08:05 +0000 (01:08 +0000)
git-svn-id: https://radegast.googlecode.com/svn/trunk@451 f7a694da-4d33-11de-9ad6-1127a62b9fcd

plugins/Radegast.Plugin.Speech/RadSpeechWin/WinSpeech.cs

index cda71ba..2e28db5 100644 (file)
@@ -46,7 +46,8 @@ namespace RadegastSpeech
 \r
         public void SpeechHalt()\r
         {\r
-            synth.Halt();\r
+            if (synth != null)\r
+                synth.Halt();\r
         }\r
 \r
         public Dictionary<string, AvailableVoice> GetVoices()\r