Ignore:
Timestamp:
2011-12-27T16:31:36+01:00 (9 years ago)
Author:
jttt
Message:

Fix some of errors found by FindBugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/template_engine/ContextSwitchTemplate.java

    r4546 r4724  
    171171            List<OsmPrimitive> lhsList = lhs.getPrimitives(root);
    172172            for (OsmPrimitive o: rhs.getPrimitives(root)) {
    173                 if (lhsList.contains(o) && condition == null && condition.match(o)) {
     173                if (lhsList.contains(o) && (condition == null || condition.match(o))) {
    174174                    result.add(o);
    175175                }
Note: See TracChangeset for help on using the changeset viewer.