Skip to content

Commit

Permalink
Merge pull request #200 from abstractcoder/null-http-adapter
Browse files Browse the repository at this point in the history
fix(): check for null httpadapter
  • Loading branch information
kamilmysliwiec authored May 12, 2020
2 parents f7507e6 + db6e86d commit b98c322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/serve-static.providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const serveStaticProviders: Provider[] = [
{
provide: AbstractLoader,
useFactory: (httpAdapterHost: HttpAdapterHost) => {
if (!httpAdapterHost) {
if (!httpAdapterHost || !httpAdapterHost.httpAdapter) {
return new NoopLoader();
}
const httpAdapter = httpAdapterHost.httpAdapter;
Expand Down

0 comments on commit b98c322

Please sign in to comment.