Ignore:
Timestamp:
06/27/13 17:42:00 (11 years ago)
Author:
pharms
Message:
  • made parsing of logfiles with missing click coordinates more lenient
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/eventcore/HTMLEventTypeFactory.java

    r1223 r1239  
    141141        String xCoord = eventParameters.get(xParamName); 
    142142        if (xCoord == null) { 
    143             throw new IllegalArgumentException 
    144                 ("eventParameters do not contain " + xParamName + " coordinate."); 
     143            Console.printerrln("eventParameters do not contain " + xParamName + " coordinate."); 
     144            xCoord = "0"; 
    145145        } 
    146146 
    147147        String yCoord = eventParameters.get(yParamName); 
    148148        if (yCoord == null) { 
    149             throw new IllegalArgumentException 
    150                 ("eventParameters do not contain " + yParamName + " coordinate."); 
     149            Console.printerrln("eventParameters do not contain " + yParamName + " coordinate."); 
     150            yCoord = "0"; 
    151151        } 
    152152 
Note: See TracChangeset for help on using the changeset viewer.