Changeset 26207

Show
Ignore:
Timestamp:
19.09.2012 09:55:36 (6 years ago)
Author:
jmt12
Message:

Sanity check trying to track down bogus docno value

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/video-and-audio/trunk/src/opt/Terrier/ImageDocument.java

    r26190 r26207  
    7878    String target_filename = "doc." + ext; 
    7979    this.properties.put("source","doc." + ext); 
    80     String assoc_filename = "D" + properties.get("docno"); 
     80    String assoc_filename = "D" + this.properties.get("docno"); 
     81    if (assoc_filename.equals("Dnull")) 
     82    { 
     83      System.err.println("Error! Bogus assoc dir: " + this.properties.get("docno")); 
     84      System.exit(0); 
     85    } 
     86 
    8187    this.properties.put("assocfile", assoc_filename); 
    8288