while (resultSetActors.hasNext()) {
QuerySolution item2 = resultSetActors.next();
results.add(new Actor(item2.get("uri").toString(), item2.get("title").toString().replace("@en", "")));
}
Collections.sort(results, new SearchableComparator());
window.getHistory().add(new SearchResultView(window.getPanelCount(), new SearchController(), results));
} catch (NullPointerException e) {
if (MainController.DEBUG) e.printStackTrace();
}
}