Project

General

Profile

Revision 886e3f27

ID886e3f27f56fff8e5bffeae6b5f21ad2dca4a90d
Parent 644bd633
Child 3f3714e3

Added by Andreas Kohlbecker over 2 years ago

ref #7648 avoiding NPE during equality check in TaxonGraphBeforeTransactionCompleteProcess

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/taxonGraph/TaxonGraphBeforeTransactionCompleteProcess.java
8 8
*/
9 9
package eu.etaxonomy.cdm.api.service.taxonGraph;
10 10

  
11
import java.util.Objects;
12

  
11 13
import org.apache.commons.lang.ArrayUtils;
12 14
import org.apache.log4j.Level;
13 15
import org.apache.log4j.Logger;
......
123 125
        for(int i = 0; i < propertyNames.length; i++){
124 126
            if(ArrayUtils.contains(propertyNamesToCheck, propertyNames[i])){
125 127
                propsCheckedCnt++;
126
                if(!oldState[i].equals(state[i])){
128
                if(!Objects.equals(oldState[i], state[i])){
127 129
                    return i;
128 130
                }
129 131
                if(propsCheckedCnt == propertyNamesToCheck.length){

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)