[longomatch] Check for null value



commit 134934cc85262f03d6016210a14f2acb3bc460fa
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sat Dec 10 02:05:44 2011 +0100

    Check for null value

 LongoMatch.GUI.Multimedia/Gui/CapturerBin.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/LongoMatch.GUI.Multimedia/Gui/CapturerBin.cs b/LongoMatch.GUI.Multimedia/Gui/CapturerBin.cs
index aa16f1c..f5a4f40 100644
--- a/LongoMatch.GUI.Multimedia/Gui/CapturerBin.cs
+++ b/LongoMatch.GUI.Multimedia/Gui/CapturerBin.cs
@@ -301,10 +301,10 @@ namespace LongoMatch.Gui
 			int width, height, allocWidth, allocHeight, logoX, logoY;
 			float ratio;
 
-			logo = logopix.Value;
-			
-			if(logo == null)
+			if(logopix == null)
 				return;
+			
+			logo = logopix.Value;
 
 			win = logodrawingarea.GdkWindow;
 			width = logo.Width;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]