Opened 4 years ago

Closed 4 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 Changed 4 years ago by Nicklas Nordborg

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.