* 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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user