Changeset 23068 in osm


Ignore:
Timestamp:
2010-09-07T23:25:52+02:00 (14 years ago)
Author:
zverik
Message:

fix NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/irsrectify/src/irsrectify/IRSRectifyPlugin.java

    r23064 r23068  
    110110
    111111        private boolean isOffsetLayer( OsmDataLayer l ) {
     112            if( l == null || l.data == null ) return false;
    112113            for( Way way : l.data.getWays() ) {
    113                 System.out.println("Found way " + way);
    114114                if( !way.isDeleted() && (way.getNodesCount() != 2 || !way.hasKey("timestamp") || !way.hasKey("user")) )
    115115                    return false;
    116116            }
    117             System.out.println("isOffsetlayer: OK");
    118117            return true;
    119118        }
Note: See TracChangeset for help on using the changeset viewer.