if(i<headers.length)
if(i<headers.length) {
  protected void displaySingleTest(HTMLizer h, Statement s, int compone, int comptwo, int testnum) {    Logger logger=h;    Test test=getTest(testnum);    h.h2(test.getDescription());    if(!tableAvailable(logger,s,compone,comptwo,testnum)){      h.sFont("RED");      h.p("Test not yet run");      h.eFont();      return;    }    try{      h.sTable();      //Print the headers:      h.sRow();      String[] headers=test.getHeaders();      for(int i=0;i<(headers.length*2);i++){	if(i<headers.length)	  h.tHead(headers[i]+" "+compone);	else	  h.tHead(headers[i-headers.length]+" "+comptwo);      }      h.eRow();      //Print the rest of the table:      int types[]=test.getTypes();      ResultSet rs=s.executeQuery("SELECT * FROM "+getDiffName(testnum, compone, comptwo));      int rows=0;      while(rs.next()){	rows++;	h.sRow();	int conflictFlag = rs.getInt(1);	if (conflictFlag < 0) h.sFont("RED");	for(int i=0;i<(types.length*2);i++){	  int typeindex = i;	  if (typeindex >= types.length) typeindex = typeindex - types.length;	  int tableindex = i+2;	  String output_s;	  switch(types[typeindex]){	  case Test.TYPE_STRING:	    output_s = rs.getString(tableindex);	    if (output_s==null) output_s = " ";	    if (conflictFlag < 0) output_s = "<FONT COLOR=RED>"+output_s+"</FONT>";	    h.tData(output_s);	    break;	  case Test.TYPE_INT:	    int output_i = rs.getInt(tableindex);	    if (output_i==0) output_s=" ";	    else output_s=new Integer(output_i).toString();	    if (conflictFlag < 0) output_s = "<FONT COLOR=RED>"+output_s+"</FONT>";	    h.tData(output_s);	    break;	  case Test.TYPE_DOUBLE:	    h.tData(rs.getDouble(tableindex));	    break;	  case Test.TYPE_TONNAGE:	    h.tData(rs.getDouble(tableindex), HTMLizer.NO_FRACTION_FORMAT);	    break;	  case Test.TYPE_DATETIME:	    h.tData(rs.getDate(tableindex)+" "+rs.getTime(tableindex));	    break;	  case Test.TYPE_ENUM_1:	  case Test.TYPE_ENUM_2:	  case Test.TYPE_ENUM_3:	  case Test.TYPE_ENUM_4:	  case Test.TYPE_ENUM_5:	    h.tData(test.renderEnum(types[typeindex],rs.getInt(tableindex)));	    break;	  default:	    logger.logMessage(Logger.WARNING,Logger.DB_QUERY,			      "Unknown type: "+types[typeindex]);	  }	}	if (conflictFlag < 0) h.eFont();	h.eRow();      }      h.eTable();      rs.close();      h.p("Total rows: "+rows);    }catch(SQLException e){      logger.logMessage(Logger.ERROR,Logger.DB_WRITE,			"Could not produce HTML from validation table",e);    }  }    