bug fixed for WebStatFilter NullPointerExcepton

This commit is contained in:
wenshao
2013-05-10 12:14:37 +08:00
parent 2a56d7e294
commit 7d0f662e25
@@ -193,7 +193,9 @@ public class WebStatFilter implements Filter {
Profiler.release(nanos);
Map<ProfileEntryKey, ProfileEntryReqStat> requestStatsMap = Profiler.getStatsMap();
uriStat.getProfiletat().record(requestStatsMap);
if (uriStat != null) {
uriStat.getProfiletat().record(requestStatsMap);
}
Profiler.removeLocal();
}
}