Ignore:
Timestamp:
04/02/12 16:17:06 (12 years ago)
Author:
sherbold
Message:
  • improved handling of empty MFC sessions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/windows/LogPreprocessor.java

    r223 r403  
    160160                String[] lines = FileTools.getLinesFromFile(source, false); 
    161161                String incompleteLine = ""; 
    162                 // Open source and read line by line 
    163162                for (String currentLine : lines) { 
    164163                        if (currentLine.contains("UL: <session>")) { 
     
    189188                                        byte[] decoded = decoder.decode(actualLine); 
    190189                                        currentContent = new String(decoded, "UTF-16LE"); 
    191                                         currentContent = currentContent.substring(0, 
    192                                                         currentContent.length() - 1); 
     190                                        if( currentContent.length()!=0 ) { 
     191                                                currentContent = currentContent.substring(0, 
     192                                                                currentContent.length() - 1); 
     193                                        } 
    193194                                } else { 
    194195                                        currentContent = actualLine; 
Note: See TracChangeset for help on using the changeset viewer.