Revision 1688 tmp/org.txm.groovy.core/src/groovy/org/txm/macro/xml/XMLFileStatistics.groovy

XMLFileStatistics.groovy (revision 1688)
61 61
} catch(Exception e) {
62 62
	println("Unexpected error while parsing file "+inputurl+" : "+e);
63 63
	e.printStackTrace();
64
	parser.close();
64
	if (parser != null) parser.close();
65
	if (inputData != null) inputData.close();
65 66
	return false;
66 67
}
67 68

  
69
if (parser != null) parser.close();
70
if (inputData != null) inputData.close();
71

  
68 72
return paths
69 73

  
70 74
public void processEndElement() {

Also available in: Unified diff