ArrayList<FsContent> fsContentList = new ArrayList<FsContent>();
try {
List<FsContent> currentDbList;
SleuthkitCase tempDb = currentCase.getSleuthkitCase();
ResultSet rs = tempDb.runQuery(this.getQuery("count(*) as TotalMatches"));
<BUG>totalMatches = totalMatches + rs.getInt("TotalMatches");
rs.close();</BUG>
rs = tempDb.runQuery(this.getQuery(null));
<BUG>currentDbList = tempDb.resultSetToFsContents(rs);
rs.close();</BUG>
fsContentList.addAll(currentDbList);

ArrayList<FsContent> fsContentList = new ArrayList<FsContent>();
try {
List<FsContent> currentDbList;
SleuthkitCase tempDb = currentCase.getSleuthkitCase();
ResultSet rs = tempDb.runQuery(this.getQuery("count(*) as TotalMatches"));
totalMatches = totalMatches + rs.getInt("TotalMatches");
rs.getStatement().close();
rs.close();
rs = tempDb.runQuery(this.getQuery(null));
currentDbList = tempDb.resultSetToFsContents(rs);
rs.getStatement().close();
rs.close();
fsContentList.addAll(currentDbList);
