Changeset 35444 in osm for applications/editors


Ignore:
Timestamp:
2020-05-14T14:21:56+02:00 (5 years ago)
Author:
gerdp
Message:

see #josm19232: IAE: Cannot format given Object as a Date
use 1970 and current date as start and end if file doesn't contain timestamps

Location:
applications/editors/josm/plugins/ElevationProfile
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/ElevationProfile/.settings/org.eclipse.jdt.ui.prefs

    r30344 r35444  
    1414sp_cleanup.always_use_this_for_non_static_field_access=false
    1515sp_cleanup.always_use_this_for_non_static_method_access=false
     16sp_cleanup.convert_functional_interfaces=false
    1617sp_cleanup.convert_to_enhanced_for_loop=false
    17 sp_cleanup.correct_indentation=true
     18sp_cleanup.correct_indentation=false
    1819sp_cleanup.format_source_code=false
    1920sp_cleanup.format_source_code_changes_only=false
     21sp_cleanup.insert_inferred_type_arguments=false
    2022sp_cleanup.make_local_variable_final=false
    2123sp_cleanup.make_parameters_final=false
     
    3335sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
    3436sp_cleanup.remove_private_constructors=true
     37sp_cleanup.remove_redundant_type_arguments=false
    3538sp_cleanup.remove_trailing_whitespaces=true
    3639sp_cleanup.remove_trailing_whitespaces_all=true
     
    4649sp_cleanup.sort_members=false
    4750sp_cleanup.sort_members_all=false
     51sp_cleanup.use_anonymous_class_creation=false
    4852sp_cleanup.use_blocks=false
    4953sp_cleanup.use_blocks_only_for_return_and_throw=false
     54sp_cleanup.use_lambda=false
    5055sp_cleanup.use_parentheses_in_expressions=false
    5156sp_cleanup.use_this_for_non_static_field_access=false
  • applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/ElevationProfile.java

    r35066 r35444  
    121121            return;
    122122
    123         start = new Date();
    124         end = new Date(0L);
     123        start = new Date(0L);
     124        end = new Date();
    125125        this.minHeight = Integer.MAX_VALUE;
    126126        this.maxHeight = Integer.MIN_VALUE;
     
    196196    protected void setStart(WayPoint wp) {
    197197        importantWayPoints[WAYPOINT_START] = wp;
    198         this.start = wp.getDate();
     198        if(wp.getDate() != null)
     199                this.start = wp.getDate();
    199200    }
    200201
     
    204205    protected void setEnd(WayPoint wp) {
    205206        importantWayPoints[WAYPOINT_END] = wp;
    206         this.end = wp.getDate();
     207        if(wp.getDate() != null)
     208                this.end = wp.getDate();
    207209    }
    208210
Note: See TracChangeset for help on using the changeset viewer.