Changeset 177 in josm


Ignore:
Timestamp:
2006-12-22T19:51:11+01:00 (17 years ago)
Author:
imi
Message:
  • fixed NPE when open the annotation preset plugin with an invalid annotation preset
Location:
src/org/openstreetmap/josm/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/gui/annotation/AnnotationCellRenderer.java

    r129 r177  
    1616        @Override public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
    1717        AnnotationPreset a = (AnnotationPreset)value;
    18         if (a.name == null)
     18        if (a == null || a.name == null)
    1919                return super.getListCellRendererComponent(list, "", index, false, false);
    2020        JComponent c = (JComponent)super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
  • src/org/openstreetmap/josm/gui/preferences/PreferenceDialog.java

    r175 r177  
    2020import org.openstreetmap.josm.plugins.PluginProxy;
    2121import org.openstreetmap.josm.tools.GBC;
     22import org.openstreetmap.josm.tools.I18n;
    2223import org.openstreetmap.josm.tools.ImageProvider;
    2324
     
    3637        // some common tabs
    3738        public final JPanel display = createPreferenceTab("display", tr("Display Settings"), tr("Various settings that influence the visual representation of the whole program."));
    38         public final JPanel connection = createPreferenceTab("connection", tr("Connection Settings"), tr("Connection Settings to the OSM server."));
    39         public final JPanel map = createPreferenceTab("map", tr("Map Settings"), tr("Settings for the map projection and data interpretation."));
     39        public final JPanel connection = createPreferenceTab("connection", I18n.tr("Connection Settings"), I18n.tr("Connection Settings to the OSM server."));
     40        public final JPanel map = createPreferenceTab("map", I18n.tr("Map Settings"), I18n.tr("Settings for the map projection and data interpretation."));
    4041
    4142        /**
Note: See TracChangeset for help on using the changeset viewer.