Opened 6 years ago

Closed 6 years ago

#704 closed defect (fixed)

NullPointerException in retraction servlet when entering a case name that doesn't exist

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: Reggie v2.18
Component: net.sf.basedb.reggie Keywords:
Cc:

Description

Stack trace from Reggie 2.17.3-dev

Error: java.lang.NullPointerException 
at net.sf.basedb.reggie.Site.findByCaseName(Site.java:58)
at net.sf.basedb.reggie.servlet.RetractionFormServlet.fetchJsonCaseInfo(RetractionFormServlet.java:842) 
at net.sf.basedb.reggie.servlet.RetractionFormServlet.doGet(RetractionFormServlet.java:112) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

Seems like Site.findByCaseName() is given a null value instead of the entered case name.

Change History (1)

comment:1 Changed 6 years ago by Nicklas Nordborg

Resolution: fixed
Status: newclosed

(In [2979]) Fixes #704: NullPointerException? in retraction servlet when entering a case name that doesn't exist

Throwing an exception with a better error message.

Note: See TracTickets for help on using tickets.