Revision 1688 tmp/org.txm.core/src/java/org/txm/scripts/importer/WordCounter.groovy

WordCounter.groovy (revision 1688)
167 167
								sid = sid.split("_")[0];
168 168
								break;
169 169
							}
170
						inputData.close();
171
						parser.close();
170
						if (parser != null) parser.close();
171
						if (inputData != null) inputData.close();
172 172
						return sid;
173 173
					}
174 174
			}
175 175
		}
176
		if (parser != null) parser.close();
177
		if (inputData != null) inputData.close();
176 178
    }
177 179
    
178 180
    /**

Also available in: Unified diff