Opened 4 years ago

Closed 4 years ago

#1230 closed defect (fixed)

NullPointerException in the "Map external data" wizard

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: Reggie v4.25.1
Component: net.sf.basedb.reggie Keywords:



    at java.base/java.util.TreeMap.put(
    at java.base/java.util.TreeSet.add(
    at net.sf.basedb.reggie.servlet.ExportServlet$ReleaseIdToPadConverter.convert(
    at net.sf.basedb.reggie.servlet.ExportServlet$ReleaseIdToPadConverter.convert(
    at net.sf.basedb.reggie.servlet.ExportServlet.doPost(
    at javax.servlet.http.HttpServlet.service(
    at javax.servlet.http.HttpServlet.service( 

It seems to be triggered when re-mapping from a release id to personal number and PAD, by a case that has more than one specimen where at least one specimen is missing a PAD value.

The problem is that the TreeSet class (used for sorting unique PAD values) doesn't support null values. A TreeSet is used in other situations as well so we should check for more cases that may have a similar problem.

Change History (1)

comment:1 by Nicklas Nordborg, 4 years ago

Resolution: fixed
Status: newclosed

In 5853:

Fixes #1230: NullPointerException in the "Map external data" wizard

Found 2 cases in the export wizard and 2 more cases in the relase exporter plug-in that could be triggered by a sequencer wihtout serial number or a demux without a read-string.

Note: See TracTickets for help on using tickets.