Opened 5 years ago

Closed 5 years ago

#1079 closed enhancement (fixed)

The FrozenTissue date importer should ignore lines without date

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: minor Milestone: Reggie v4.21
Component: net.sf.basedb.reggie Keywords:
Cc:

Description

This includes empty lines and lines with only white-space. Seems like we get a NullPointerException if there are such lines:

Error: java.lang.NullPointerException 
  at java.util.regex.Matcher.getTextLength(Unknown Source) 
  at java.util.regex.Matcher.reset(Unknown Source) 
  at java.util.regex.Matcher.<init>(Unknown Source) 
  at java.util.regex.Pattern.matcher(Unknown Source) 
  at net.sf.basedb.reggie.servlet.ImportServlet.doPost(ImportServlet.java:186) 
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
...

Change History (1)

comment:1 by Nicklas Nordborg, 5 years ago

Resolution: fixed
Status: newclosed

(In [5112]) Fixes #1079: The FrozenTissue date importer should ignore lines without date

Added regular expression ^\s*$ as an ignore pattern.

Note: See TracTickets for help on using tickets.