Subversion Repositories SmartDukaan

Rev

Rev 35394 | Rev 35482 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35394 Rev 35481
Line 235... Line 235...
235
        List<PartnerType> partnerTypes = Arrays.asList(PartnerType.values());
235
        List<PartnerType> partnerTypes = Arrays.asList(PartnerType.values());
236
 
236
 
237
        for (PartnerType partnerType : partnerTypes) {
237
        for (PartnerType partnerType : partnerTypes) {
238
 
238
 
239
            float count = fofoIdAndallValues.entrySet().stream()
239
            float count = fofoIdAndallValues.entrySet().stream()
240
                    .filter(x -> x.getValue().getPartnerType().equals(partnerType)).count();
240
                    .filter(x -> x.getValue() != null && x.getValue().getPartnerType() != null && x.getValue().getPartnerType().equals(partnerType)).count();
241
 
241
 
242
            partnerTypeCount.put(partnerType.toString(), count);
242
            partnerTypeCount.put(partnerType.toString(), count);
243
 
243
 
244
        }
244
        }
245
 
245