Ignore:
Timestamp:
2016-05-18T19:31:26+02:00 (4 years ago)
Author:
Don-vip
Message:

partial revert of r10250 - causes NPE in OverpassDownloadDialog initialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/OverpassDownloadAction.java

    r10250 r10252  
    120120    private static final class OverpassDownloadDialog extends DownloadDialog {
    121121
    122         private final HistoryComboBox overpassWizard = new HistoryComboBox();
    123         private final JosmTextArea overpassQuery = new JosmTextArea("", 8, 80);
     122        private HistoryComboBox overpassWizard;
     123        private JosmTextArea overpassQuery;
    124124        private static OverpassDownloadDialog instance;
    125125        private static final CollectionProperty OVERPASS_WIZARD_HISTORY = new CollectionProperty("download.overpass.wizard",
     
    151151
    152152            final String tooltip = tr("Builds an Overpass query using the Overpass Turbo query wizard");
     153            overpassWizard = new HistoryComboBox();
    153154            overpassWizard.setToolTipText(tooltip);
    154155            overpassWizard.getEditorComponent().addFocusListener(disableActionsFocusListener);
     
    177178            pnl.add(overpassWizard, GBC.eol().fill(GBC.HORIZONTAL));
    178179
     180            overpassQuery = new JosmTextArea("", 8, 80);
    179181            overpassQuery.setFont(GuiHelper.getMonospacedFont(overpassQuery));
    180182            overpassQuery.addFocusListener(disableActionsFocusListener);
Note: See TracChangeset for help on using the changeset viewer.