mikeobrien / WebApi.StructureMap

Web API StructureMap Integration
MIT License
12 stars 5 forks source link

Exception when HttpActionExecutedContext.Response is empty #4

Closed ptixed closed 6 years ago

ptixed commented 6 years ago

Extension methods can throw an exception from here whenever some arguments are null. This happens e.g. when HttpActionExecutedContext does not yet have a Response.

mikeobrien commented 6 years ago

I'm not maintaining this lib and don't use WebApi anymore, but if you wanted to tackle this, a PR would be awesome.

ptixed commented 6 years ago

Created PR #5.

mikeobrien commented 6 years ago

Thx! Pushed to nuget, will take a bit to validate and index.

ptixed commented 6 years ago

Yay! My first accepted PR, thanks!

mikeobrien commented 6 years ago

Awesome! :D