Ignore:
Timestamp:
2013-03-22T01:17:06+01:00 (12 years ago)
Author:
Don-vip
Message:

see #8530 - workaround for NPE when loading "Steps properties" presets ("No handrail" item) + various minor stuff

File:
1 edited

Legend:

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

    r5772 r5791  
    591591        while (leadingWhite && start < end) {
    592592            char c = str.charAt(start);
    593             if (leadingWhite = (Character.isWhitespace(c) || Character.isSpaceChar(c))) {
     593            leadingWhite = (Character.isWhitespace(c) || Character.isSpaceChar(c));
     594            if (leadingWhite) {
    594595                start++;
    595596            }
     
    598599        while (trailingWhite && end > start+1) {
    599600            char c = str.charAt(end-1);
    600             if (trailingWhite = (Character.isWhitespace(c) || Character.isSpaceChar(c))) {
     601            trailingWhite = (Character.isWhitespace(c) || Character.isSpaceChar(c));
     602            if (trailingWhite) {
    601603                end--;
    602604            }
Note: See TracChangeset for help on using the changeset viewer.