* Fixed NullReferenceExceptions recently introduced into CAPS code [LIBOMV-353]

* Small formatting cleanups in NotationLLSD.cs

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2092 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2008-08-15 22:10:54 +00:00
parent 6c0dfb2297
commit 55478386a6
3 changed files with 17 additions and 17 deletions

View File

@@ -132,7 +132,7 @@ namespace OpenMetaverse.Capabilities
if (e.Error != null)
{
HttpStatusCode code = HttpStatusCode.OK;
if (e.Error is WebException)
if (e.Error is WebException && ((WebException)e.Error).Response != null)
code = ((HttpWebResponse)((WebException)e.Error).Response).StatusCode;
if (code == HttpStatusCode.NotFound || code == HttpStatusCode.Gone)