Ignore:
Timestamp:
2019-02-18T19:27:16+01:00 (5 years ago)
Author:
Don-vip
Message:

fix NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreferenceTestIT.java

    r14789 r14792  
    1212import java.util.ArrayList;
    1313import java.util.Collections;
    14 import java.util.LinkedList;
    1514import java.util.List;
    1615import java.util.Locale;
     
    108107
    109108    private static TMSCachedTileLoaderJob helper;
    110     private static List<String> errorsToIgnore;
    111     private static List<String> notIgnoredErrors;
     109    private static final List<String> errorsToIgnore = new ArrayList<>();
     110    private static final List<String> notIgnoredErrors = new ArrayList<>();
    112111
    113112    /**
     
    118117    public static void beforeClass() throws IOException {
    119118        helper = new TMSCachedTileLoaderJob(null, null, new CacheAccess<>(null), new TileJobOptions(0, 0, null, 0), null);
    120         errorsToIgnore = TestUtils.getIgnoredErrorMessages(ImageryPreferenceTestIT.class);
    121         notIgnoredErrors = new LinkedList<>(errorsToIgnore);
     119        errorsToIgnore.addAll(TestUtils.getIgnoredErrorMessages(ImageryPreferenceTestIT.class));
     120        notIgnoredErrors.addAll(errorsToIgnore);
    122121    }
    123122
Note: See TracChangeset for help on using the changeset viewer.