373603 NullPointer in WebServletAnnotation
This commit is contained in:
parent
381615f52d
commit
5111a2c640
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue