Changeset 2532 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2009-11-28T15:18:58+01:00 (15 years ago)
Author:
Gubaer
Message:

Fixing NPE sometimes occuring at startup in Lambert projection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/Lambert.java

    r2516 r2532  
    9797                String gridFileName = "ntf_r93_b.gsb";
    9898                InputStream is = Main.class.getResourceAsStream("/data/"+gridFileName);
     99                if (is == null) {
     100                    System.err.println(tr("Warning: failed to open input stream for resource ''/data/{0}''. Cannot load NTF<->RGF93 grid", gridFileName));
     101                    return;
     102                }
    99103                ntf_rgf93Grid = new NTV2GridShiftFile();
    100104                ntf_rgf93Grid.loadGridShiftFile(is, false);
Note: See TracChangeset for help on using the changeset viewer.