Changeset 3258 in osm for applications


Ignore:
Timestamp:
2007-06-18T21:02:51+02:00 (17 years ago)
Author:
frsantos
Message:

Fixed IndexOutOfBoundsException

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/TaggedSegment.java

    r3036 r3258  
    7373                        }
    7474                }
    75                
    76                 return commands.size() > 1 ? new SequenceCommand("Remove keys", commands) : commands.get(0);
     75                if( commands.size() == 0 )
     76                        return null;
     77                else if( commands.size() == 1 )
     78                        return commands.get(0);
     79                else
     80                        return new SequenceCommand("Remove keys", commands) ;
    7781        }
    7882       
Note: See TracChangeset for help on using the changeset viewer.