Changeset 3212 in josm


Ignore:
Timestamp:
2010-04-27T13:33:43+02:00 (15 years ago)
Author:
bastiK
Message:

fixed #4950 - Bad loop over attribute list (patch by jamesmikedupont)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r3083 r3212  
    122122
    123123        @Override public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {
    124             for (int i=0; i< qName.length(); i++) {
     124            for (int i=0; i< atts.getLength(); i++) {
    125125                capabilities.put(qName, atts.getQName(i), atts.getValue(i));
    126126            }
Note: See TracChangeset for help on using the changeset viewer.