mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +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
|
//Make a SolrInputDocument out of the field map
|
||||||
SolrInputDocument updateDoc = new SolrInputDocument();
|
SolrInputDocument updateDoc = new SolrInputDocument();
|
||||||
for (String key : fields.keySet()) {
|
for (String key : fields.keySet()) {
|
||||||
updateDoc.addField(key, Chunker.sanitize((String)fields.get(key)).toString());
|
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 {
|
try {
|
||||||
|
@ -62,7 +62,11 @@ class LanguageSpecificContentIndexingHelper {
|
|||||||
//Make a SolrInputDocument out of the field map
|
//Make a SolrInputDocument out of the field map
|
||||||
SolrInputDocument updateDoc = new SolrInputDocument();
|
SolrInputDocument updateDoc = new SolrInputDocument();
|
||||||
for (String key : fields.keySet()) {
|
for (String key : fields.keySet()) {
|
||||||
updateDoc.addField(key, Chunker.sanitize((String)fields.get(key)).toString());
|
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 {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user