Changeset 13599 in josm


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

see #16129 - fix build error

Location:
trunk
Files:
2 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
  • trunk/src/org/openstreetmap/josm/data/projection/Projections.java

    r13598 r13599  
    339339            }
    340340        }
    341         if (result.isEmpty())
    342             throw new AssertionError("EPSG file seems corrupted");
    343341        return result;
    344342    }
Note: See TracChangeset for help on using the changeset viewer.