Fixed issues when retrieving data from external sources
This commit is contained in:
parent
b66fe982f5
commit
88ea24d367
|
@ -297,7 +297,11 @@ public class RemoteFetcher {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
mapToMap(id, (Map<String, String>)obj, item, i == 1);
|
||||
if (obj instanceof Map) {
|
||||
mapToMap(id, (Map<String, String>) obj, item, i == 1);
|
||||
} else if (obj != null){
|
||||
item.put(id, obj.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -502,6 +506,7 @@ public class RemoteFetcher {
|
|||
}
|
||||
|
||||
private void mapToMap(String key, Map<String, String> source, Map<String, String> destination, boolean isTitle) {
|
||||
if (source != null) {
|
||||
String content = source.get("content");
|
||||
if (isTitle) {
|
||||
String classId = source.get("classid");
|
||||
|
@ -512,4 +517,5 @@ public class RemoteFetcher {
|
|||
destination.put(key, content);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue