Permalink
Browse files

fix checking of ServiceExceptionHandler in ServiceBase

  • Loading branch information...
1 parent caca115 commit 4d3bcf2545f08fd053aefcf295ae04d086d5e63d @mythz mythz committed Sep 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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; }
}

0 comments on commit 4d3bcf2

Please sign in to comment.