[gbrainy] Fixes issue 605722
- From: Jordi Mas <jmas src gnome org>
- To: svn-commits-list gnome org
- Cc: 
- Subject: [gbrainy] Fixes issue 605722
- Date: Fri,  1 Jan 2010 12:31:32 +0000 (UTC)
commit 4cb2b34585c0f54df4fd47f8c1f3e2266196873b
Author: Jordi Mas <jmas softcatala org>
Date:   Fri Jan 1 13:31:56 2010 +0100
    Fixes issue 605722
 src/Core/Main/GameSession.cs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/Main/GameSession.cs b/src/Core/Main/GameSession.cs
index 4c141f3..4dc3131 100644
--- a/src/Core/Main/GameSession.cs
+++ b/src/Core/Main/GameSession.cs
@@ -435,6 +435,9 @@ namespace gbrainy.Core.Main
 		private void TimerUpdater (object source, ElapsedEventArgs e)
 		{
 			lock (this) {
+				if (CurrentGame == null)
+					return;
+
 				game_time = game_time.Add (one_sec);
 				CurrentGame.GameTime = CurrentGame.GameTime + one_sec;
 				current_time = TimeSpanToStr (game_time);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]