Changeset 13599 in josm for trunk/scripts


Ignore:
Timestamp:
2018-04-06T01:42:15+02:00 (7 years ago)
Author:
Don-vip
Message:

see #16129 - fix build error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/BuildProjectionDefinitions.java

    r13598 r13599  
    7777
    7878    static void initMap(String baseDir, String file, Map<String, ProjectionDefinition> map) throws IOException {
    79         for (ProjectionDefinition pd : Projections.loadProjectionDefinitions(
    80                 baseDir + File.separator + PROJ_DIR + File.separator + file)) {
     79        List<ProjectionDefinition> list = Projections.loadProjectionDefinitions(
     80                baseDir + File.separator + PROJ_DIR + File.separator + file);
     81        if (list.isEmpty())
     82            throw new AssertionError("EPSG file seems corrupted");
     83        for (ProjectionDefinition pd : list) {
    8184            map.put(pd.code, pd);
    8285        }
     
    200203        }
    201204        String proj = parameters.get(CustomProjection.Param.proj.key);
     205        if (proj == null) {
     206            result = false;
     207        }
    202208
    203209        // +proj=geocent is 3D (X,Y,Z) "projection" - this is not useful in
Note: See TracChangeset for help on using the changeset viewer.