Browse files

Fixed crash for when EndpointHost.Config.MetadataRedirectPath is not …

…set, which prevents the NonRootModeDefaultHttpHandler from being created
  • Loading branch information...
1 parent b9b9c83 commit f5c3eb2886cadd0ff2448afab4b9943cea07d1d0 @Iristyle Iristyle committed Jul 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ServiceStack/WebHost.EndPoints/ServiceStackHttpHandlerFactory.cs
View
2 src/ServiceStack/WebHost.EndPoints/ServiceStackHttpHandlerFactory.cs
@@ -183,7 +183,7 @@ private static void SetApplicationBaseUrl(string absoluteUrl)
defaultRedirectUrl.AbsoluteUrl = ApplicationBaseUrl.CombineWith(
defaultRedirectUrl.RelativeUrl);
- if (NonRootModeDefaultHttpHandler.AbsoluteUrl == null)
+ if (NonRootModeDefaultHttpHandler != null && NonRootModeDefaultHttpHandler.AbsoluteUrl == null)
NonRootModeDefaultHttpHandler.AbsoluteUrl = ApplicationBaseUrl.CombineWith(
NonRootModeDefaultHttpHandler.RelativeUrl);
}

0 comments on commit f5c3eb2

Please sign in to comment.