mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 07:56:16 +00:00
Fixed a class casting error
This commit is contained in:
parent
f2eadf0389
commit
e2db2c2e44
@ -284,7 +284,11 @@ class Ingester {
|
||||
//Make a SolrInputDocument out of the field map
|
||||
SolrInputDocument updateDoc = new SolrInputDocument();
|
||||
for (String key : fields.keySet()) {
|
||||
if (fields.get(key).getClass() == String.class) {
|
||||
updateDoc.addField(key, Chunker.sanitize((String)fields.get(key)).toString());
|
||||
} else {
|
||||
updateDoc.addField(key, fields.get(key));
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
|
@ -62,7 +62,11 @@ class LanguageSpecificContentIndexingHelper {
|
||||
//Make a SolrInputDocument out of the field map
|
||||
SolrInputDocument updateDoc = new SolrInputDocument();
|
||||
for (String key : fields.keySet()) {
|
||||
if (fields.get(key).getClass() == String.class) {
|
||||
updateDoc.addField(key, Chunker.sanitize((String)fields.get(key)).toString());
|
||||
} else {
|
||||
updateDoc.addField(key, fields.get(key));
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user