Commit f8fa9b0401ac1fa2c2ad39951612bf4c0423fecb

Authored by Matthijs Brouwer
1 parent 71990ba7

bug parser

docker/Dockerfile
1 1 # Automatically generated Dockerfile
2   -# - Build 2017-05-14 14:02
  2 +# - Build 2017-05-17 12:03
3 3 # - Lucene/Solr version 6.5.1
4 4 # - Mtas release 20170505
5 5 #
... ... @@ -74,7 +74,7 @@ RUN service apache2 stop && \
74 74 chmod -R 755 /var/www/html && \
75 75 printf "echo\n" >> /start.sh && \
76 76 printf "echo \"================ Mtas -- Multi Tier Annotation Search =================\"\n" >> /start.sh && \
77   - printf "echo \" Timestamp 2017-05-14 14:02\"\n" >> /start.sh && \
  77 + printf "echo \" Timestamp 2017-05-17 12:03\"\n" >> /start.sh && \
78 78 printf "echo \" Lucene/Solr version 6.5.1\"\n" >> /start.sh && \
79 79 printf "echo \" Mtas release 20170505\"\n" >> /start.sh && \
80 80 printf "echo \" See https://meertensinstituut.github.io/mtas/ for more information\"\n" >> /start.sh && \
... ...
src/mtas/analysis/parser/MtasParser.java
... ... @@ -240,7 +240,8 @@ abstract public class MtasParser {
240 240 }
241 241 for (String id : updateableIdsWithOffset) {
242 242 if (idOffsets.containsKey(id)) {
243   - if (idOffsets.get(id) == null) {
  243 + Integer[] currentOffset = idOffsets.get(id);
  244 + if (currentOffset == null || currentOffset.length==0) {
244 245 idOffsets.put(id,
245 246 new Integer[] { objectOffsetStart, objectOffsetEnd });
246 247 }
... ...