Ignore:
Timestamp:
2012-09-11T17:57:32+02:00 (12 years ago)
Author:
larry0ua
Message:

'RelToolbox: update validations for associatedStreet'

Location:
applications/editors/josm/plugins/reltoolbox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reltoolbox/build.xml

    r28708 r28710  
    3030<project name="reltoolbox" default="dist" basedir=".">
    3131    <!-- enter the SVN commit message -->
    32     <property name="commit.message" value="RelToolbox: fix possible NPE in associatedStreet fixer"/>
     32    <property name="commit.message" value="RelToolbox: update validations for associatedStreet"/>
    3333    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    3434    <property name="plugin.main.version" value="5018"/>
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix/AssociatedStreetFixer.java

    r28708 r28710  
    4949                for (RelationMember m : rel.getMembers()) {
    5050                        if ("street".equals(m.getRole()) && !streetName.equals(m.getWay().get("name"))) {
    51                             setWarningMessage(tr("Relation has streets with different names"));
    52                             return false;
     51                            String anotherName = m.getWay().get("name");
     52                            if (anotherName != null && !anotherName.isEmpty()) {
     53                            setWarningMessage(tr("Relation has streets with different names"));
     54                            return false;
     55                            }
    5356                        }
    5457                }
Note: See TracChangeset for help on using the changeset viewer.