Ignore:
Timestamp:
2011-05-04T07:09:56+02:00 (8 years ago)
Author:
jttt
Message:

Fix #6301 Check for null mandatory in TableCellRenderer.getTableCellRendererComponent

Location:
trunk/src/org/openstreetmap/josm/gui/history
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/NodeListTableCellRenderer.java

    r3083 r4072  
    6161    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
    6262            int row, int column) {
     63        if (value == null)
     64            return this;
     65
    6366        HistoryBrowserModel.NodeListTableModel model = getNodeListTableModel(table);
    6467        Long nodeId = (Long)value;
  • trunk/src/org/openstreetmap/josm/gui/history/RelationMemberListTableCellRenderer.java

    r3083 r4072  
    9494    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
    9595            int row, int column) {
     96        if (value == null)
     97            return this;
     98
    9699        HistoryBrowserModel.RelationMemberTableModel model = gteRelationMemberTableModel(table);
    97100        RelationMember member = (RelationMember)value;
  • trunk/src/org/openstreetmap/josm/gui/history/TagTableCellRenderer.java

    r3083 r4072  
    8282            int row, int column) {
    8383
     84        if (value == null)
     85            return this;
     86
    8487        String key = (String)value;
    8588        HistoryBrowserModel.TagTableModel model = getTagTableModel(table);
  • trunk/src/org/openstreetmap/josm/gui/history/VersionTableCellRenderer.java

    r3083 r4072  
    149149    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
    150150            int row, int column) {
     151
     152        if (value == null)
     153            return this;
     154
    151155        if (getModel(table).isLatest(row)) {
    152156            renderLatest(getModel(table).getLatest(),table, row, isSelected);
Note: See TracChangeset for help on using the changeset viewer.