Revision 1688 tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/nlp/XMLStaxTokenizerAdapter2.groovy

XMLStaxTokenizerAdapter2.groovy (revision 1688)
70 70
			println("Error while parsing file "+inputurl);
71 71
			println("Location "+parser.getLocation());
72 72
			org.txm.utils.logger.Log.printStackTrace(e);
73
			parser.close();
73
			if (parser != null) parser.close();
74
			if (inputData != null) inputData.close();
74 75
			return false;
75 76
		}
76 77

  
77
		if (parser !=null) parser.close();
78
		if (parser != null) parser.close();
79
		if (inputData != null) inputData.close();
78 80
		return true;
79 81
	}
80 82

  

Also available in: Unified diff