Project

General

Profile

« Previous | Next » 

Revision 64f636f0

Added by Katja Luther about 7 years ago

fix problem when description of an element is null in referencing objects view

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/referencingobjects/ReferencingObjectsView.java
376 376
			if (result == 0) {
377 377
				string1 = DescriptionHelper.getObjectDescription(o1);
378 378
				string2 = DescriptionHelper.getObjectDescription(o2);
379

  
379
				if (string1 == null && string2 == null){
380
				    return 0;
381
				}
382
				if (string1 == null && string2 != null){
383
				    return -1;
384
				}
385
				if (string2 == null && string1 != null){
386
				    return 1;
387
				}
380 388
				result = string1.compareToIgnoreCase(string2);
381 389
				if (result == 0){
382 390
				    return o1.getUuid().compareTo(o2.getUuid());

Also available in: Unified diff