Project

General

Profile

Revision 02f58c70

ID02f58c709c8e2ea7cd2bc2a8e0fd529a80be54c2
Parent d7d1f114
Child 28e5e3c3

Added by Andreas Kohlbecker almost 4 years ago

fix #7250 adding remaining null checks to TeamDefaultCacheStrategy

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/cache/agent/TeamDefaultCacheStrategy.java
81 81
		List<Person> teamMembers = team.getTeamMembers();
82 82
		int i = 0;
83 83
		for (Person teamMember : teamMembers){
84
			if(teamMember == null){
85
                // this can happen in UIs in the process of adding new members
86
			    continue;
87
			}
84 88
			i++;
85 89
			String concat = concatString(team, teamMembers, i);
86 90
			result += concat + teamMember.getNomenclaturalTitle();
......
124 128

  
125 129
		int i = 0;
126 130
		for (Person teamMember : teamMembers){
131
		    if(teamMember == null){
132
                // this can happen in UIs in the process of adding new members
133
                continue;
134
            }
127 135
			i++;
128 136
			String concat = concatString(team, teamMembers, i);
129 137
			result += concat + teamMember.getFullTitle();

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)