Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix checking of ServiceExceptionHandler in ServiceBase

  • Loading branch information...
commit 4d3bcf2545f08fd053aefcf295ae04d086d5e63d 1 parent caca115
@mythz mythz authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/ServiceStack.ServiceInterface/ServiceBase.cs
View
2  src/ServiceStack.ServiceInterface/ServiceBase.cs
@@ -52,7 +52,7 @@ public IAppHost GetAppHost()
private HandleServiceExceptionDelegate serviceExceptionHandler;
public HandleServiceExceptionDelegate ServiceExceptionHandler
{
- get { return serviceExceptionHandler ?? appHost.ServiceExceptionHandler; }
+ get { return serviceExceptionHandler ?? (GetAppHost() != null ? GetAppHost().ServiceExceptionHandler : null); }
set { serviceExceptionHandler = value; }
}
Please sign in to comment.
Something went wrong with that request. Please try again.