Revision 50332
Added by Panagiotis Kanakakis about 6 years ago
Converter.java | ||
---|---|---|
307 | 307 |
/* if( repositoryObject.get("aggregationHistory").toString().equals("[]") || |
308 | 308 |
repositoryObject.get("aggregationHistory")!= null) |
309 | 309 |
return null;*/ |
310 |
if(repositoryObject.get("aggregationHistory").toString().equals("null"))
|
|
310 |
if(repositoryObject.get("aggregationHistory").toString().equals("[]"))
|
|
311 | 311 |
return null; |
312 | 312 |
|
313 | 313 |
|
... | ... | |
322 | 322 |
private static AggregationDetails jsonToAggregationDetails(JSONObject aggregationObject) throws JSONException { |
323 | 323 |
|
324 | 324 |
AggregationDetails aggregationDetails = new AggregationDetails(); |
325 |
|
|
325 |
|
|
326 | 326 |
aggregationDetails.setAggregationStage(aggregationObject.get("aggregationStage").toString()); |
327 | 327 |
//aggregationDetails.setCollectionMode(aggregationObject.get("collectionMode").toString()); |
328 | 328 |
aggregationDetails.setDate(convertStringToDate(aggregationObject.get("date").toString())); |
Also available in: Unified diff
Bug fix on converte class . Empty aggregation equals []