Project

General

Profile

« Previous | Next » 

Revision 281b1abd

Added by Patrick Plitzner over 4 years ago

ref #7095 Fix potential NPE

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/workingSet/matrix/AggregationConfiguration.java
71 71
                    QuantitativeData quantitativeData = (QuantitativeData)dataValue;
72 72
                    Float min = quantitativeData.getMin();
73 73
                    Float max = quantitativeData.getMax();
74
                    if(minTotal==null || min<minTotal){
74
                    if(min!=null && (minTotal==null || min<minTotal)){
75 75
                        minTotal = min;
76 76
                    }
77
                    if(maxTotal==null || max>maxTotal){
77
                    if(max!=null && (maxTotal==null || max>maxTotal)){
78 78
                        maxTotal = max;
79 79
                    }
80 80
                }

Also available in: Unified diff