373603 NullPointer in WebServletAnnotation

This commit is contained in:
Jan Bartel 2012-03-08 10:26:34 +11:00
parent 381615f52d
commit 5111a2c640
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ public class WebServletAnnotation extends DiscoveredAnnotation
{
for (ServletHolder h : holders)
{
if (h.getClassName().equals(clazz.getName()) && h.getName().equals(servletName))
if (h.getClassName().equals(clazz.getName()) && h.getName() != null && servletName.equals(h.getName()))
{
holder = h;
isNew = false;