Changeset 2463 in josm


Ignore:
Timestamp:
2009-11-16T17:17:39+01:00 (15 years ago)
Author:
stoecker
Message:

fix #3955 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/DefaultNameFormatter.java

    r2462 r2463  
    1414import org.openstreetmap.josm.data.coor.CoordinateFormat;
    1515import org.openstreetmap.josm.data.osm.Changeset;
     16import org.openstreetmap.josm.data.osm.DataSet;
    1617import org.openstreetmap.josm.data.osm.NameFormatter;
    1718import org.openstreetmap.josm.data.osm.Node;
     
    189190            int mbno = relation.getMembersCount();
    190191            name += trn("{0} member", "{0} members", mbno, mbno) + ")";
    191             if(relation.getDataSet().getErrors(relation) != null) {
     192            DataSet data = relation.getDataSet();
     193            if(data != null && data.getErrors(relation) != null) {
    192194                name = "*"+name;
    193195            }
Note: See TracChangeset for help on using the changeset viewer.