Changeset 30061 for other-projects

Show
Ignore:
Timestamp:
27.07.2015 23:13:48 (4 years ago)
Author:
davidb
Message:

Removal of debug print statements, and tidy up on 'finally' clause

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • other-projects/the-macronizer/trunk/src/java/web/servlets/DirectInput.java

    r29855 r30061  
    9797        File restoredFile = null; 
    9898        try { 
    99             System.out.println("test 1"); 
    10099            restoredFile = pluginManager.run(configuration); 
    101100            //Read the file into a String then delete 
    102              System.out.println("test done"); 
    103101            String restoredFragment = read(restoredFile, "utf-8"); 
    104102              
     
    114112        } finally { 
    115113            file.delete(); 
    116             restoredFile.delete(); 
     114        if (restoredFile != null) { 
     115        restoredFile.delete(); 
     116        } 
    117117        } 
    118118    }