Changeset 3689 in josm


Ignore:
Timestamp:
2010-12-01T13:58:30+01:00 (11 years ago)
Author:
bastiK
Message:

fixed #5682 - npe in cellrenderer when shutting down JOSM

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/Projection.java

    r3635 r3689  
    2828        new TransverseMercatorLV(),
    2929        new Puwg(),
     30        new Epsg3008(), // SWEREF99 13 30
    3031        new SwissGrid(),
    3132    };
  • trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java

    r3688 r3689  
    707707        public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
    708708            JTextField tf = (JTextField) super.getTableCellEditorComponent(table, value, isSelected, row, column);
    709             Layer l = (Layer) value;
    710             tf.setText(l.getName());
     709            tf.setText(value == null ? "" : ((Layer) value).getName());
    711710            return tf;
    712711        }
Note: See TracChangeset for help on using the changeset viewer.