Author: mhutch
Date: 2008-01-14 15:10:28 -0500 (Mon, 14 Jan 2008)
New Revision: 92899
Modified:
trunk/monodevelop/main/src/addins/WelcomePage/ChangeLog
trunk/monodevelop/main/src/addins/WelcomePage/WelcomePageView.cs
Log:
2008-01-11 Alexandre Miguel Pedro Gomes <[EMAIL PROTECTED]>
* WelcomePageView.cs: Check if WebException.Response is null before
trying to use it.
Modified: trunk/monodevelop/main/src/addins/WelcomePage/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/addins/WelcomePage/ChangeLog 2008-01-14
20:02:43 UTC (rev 92898)
+++ trunk/monodevelop/main/src/addins/WelcomePage/ChangeLog 2008-01-14
20:10:28 UTC (rev 92899)
@@ -1,3 +1,8 @@
+2008-01-11 Alexandre Miguel Pedro Gomes <[EMAIL PROTECTED]>
+
+ * WelcomePageView.cs: Check if WebException.Response is null before
+ trying to use it.
+
2008-01-04 Michael Hutchinson <[EMAIL PROTECTED]>
* WelcomePageView.cs:
Modified: trunk/monodevelop/main/src/addins/WelcomePage/WelcomePageView.cs
===================================================================
--- trunk/monodevelop/main/src/addins/WelcomePage/WelcomePageView.cs
2008-01-14 20:02:43 UTC (rev 92898)
+++ trunk/monodevelop/main/src/addins/WelcomePage/WelcomePageView.cs
2008-01-14 20:10:28 UTC (rev 92899)
@@ -128,7 +128,7 @@
}
NewsUpdated (null, EventArgs.Empty);
} catch (System.Net.WebException wex) {
- if (((HttpWebResponse)wex.Response).StatusCode
!= HttpStatusCode.NotModified)
+ if (wex.Response == null ||
((HttpWebResponse)wex.Response).StatusCode != HttpStatusCode.NotModified)
LoggingService.LogWarning ("Could not
download news file for Welcome Page.", wex);
} catch (Exception ex) {
LoggingService.LogWarning ("Could not download
news file for Welcome Page.", ex);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches