Project

General

Profile

Revision f266536e

IDf266536effa4d228929f91a2d2e6266ea0077224
Parent 7cff439d
Child 73d33afe

Added by Andreas Müller about 2 months ago

ref #8990 fix NPE in getTemporalDataText

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/DescriptionHelper.java
787 787
     */
788 788
    private static String getTemporalDataText(TemporalData element) {
789 789
        ExtendedTimePeriod period = element.getPeriod();
790
        Partial end = period.getEnd().without(DateTimeFieldType.year());
791
        Partial extremeEnd = period.getExtremeEnd().without(DateTimeFieldType.year());
790
        Partial end = period.getEnd()==null?null:period.getEnd().without(DateTimeFieldType.year());
791
        Partial extremeEnd = period.getExtremeEnd()== null? null: period.getExtremeEnd().without(DateTimeFieldType.year());
792 792

  
793
        Partial start = period.getStart().without(DateTimeFieldType.year());
794
        Partial extremeStart = period.getExtremeStart().without(DateTimeFieldType.year());
793
        Partial start = period.getStart()==null? null: period.getStart().without(DateTimeFieldType.year());
794
        Partial extremeStart = period.getExtremeStart()==null? null : period.getExtremeStart().without(DateTimeFieldType.year());
795 795

  
796 796
        String result = "";
797 797
        DateTimeFormatter formatter = ExtendedTimePeriodPartialFormatter.NewInstance();

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)