Skip to content
Snippets Groups Projects
Commit 246a2527 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Fix crop category generation due to probably minor change in Java

parent 84c68008
Branches
No related tags found
No related merge requests found
......@@ -215,12 +215,18 @@ public class VIPSMobileService {
cropCategories.stream().forEach(
cc -> {
List<Organism> ccCropList = new ArrayList<>();
Arrays.asList(cc.getCropOrganismIds()).stream().forEach(
cc.getCropOrganismIds().stream().forEach(
cropId -> {
ccCropList.add(allCrops.get(cropId));
if(allCrops.get(cropId) != null)
{
ccCropList.add(allCrops.get(cropId));
}
}
);
retVal.add(new VIPSMobileCropCategory(cc, ccCropList, "nb"));
if(!ccCropList.isEmpty())
{
retVal.add(new VIPSMobileCropCategory(cc, ccCropList, "nb"));
}
}
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment