mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
fix case in check for solr content when there is no content at all
This commit is contained in:
parent
068e9807ad
commit
0a413a98b6
@ -173,10 +173,14 @@ public class ExtractedContentViewer implements DataContentViewer {
|
||||
* @return true if Solr has content, else false
|
||||
*/
|
||||
private boolean solrHasContent(Node node) {
|
||||
Content content = node.getLookup().lookup(Content.class);
|
||||
if (content == null)
|
||||
return false;
|
||||
|
||||
Server.Core solrCore = KeywordSearch.getServer().getCore();
|
||||
SolrQuery q = new SolrQuery();
|
||||
q.setQuery("*:*");
|
||||
q.addFilterQuery("id:" + node.getLookup().lookup(Content.class).getId());
|
||||
q.addFilterQuery("id:" + content.getId());
|
||||
q.setFields("id");
|
||||
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user