SamSaffron / MiniProfiler

A simple but effective mini-profiler for ASP.NET MVC, ASP.NET and Ruby.
http://miniprofiler.com
1.05k stars 221 forks source link

Fix NullReferenceException in ProfilingActionFilter.cs #161

Closed jeradrose closed 11 years ago

jeradrose commented 11 years ago

There was a small bug in the ProfilingActionFilter that was causing an exception in some cases. Fortunately, it was an easy fix.

When tokens["area"] is null, .ToString() throws a NullReferenceException. So changed to use a (string) cast instead.

dixon commented 11 years ago

Thank you.