Ignore:
Timestamp:
2018-02-25T00:55:29+01:00 (6 years ago)
Author:
Don-vip
Message:

fix #16005 - add robustness in imagery preferences tooltip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java

    r13438 r13456  
    311311                public String getToolTipText(MouseEvent e) {
    312312                    java.awt.Point p = e.getPoint();
    313                     return activeModel.getValueAt(rowAtPoint(p), columnAtPoint(p)).toString();
     313                    try {
     314                        return activeModel.getValueAt(rowAtPoint(p), columnAtPoint(p)).toString();
     315                    } catch (ArrayIndexOutOfBoundsException ex) {
     316                        Logging.debug(ex);
     317                        return null;
     318                    }
    314319                }
    315320            };
     
    714719                    return info.getExtendedUrl();
    715720                default:
    716                     throw new ArrayIndexOutOfBoundsException();
     721                    throw new ArrayIndexOutOfBoundsException(Integer.toString(column));
    717722                }
    718723            }
     
    732737                    break;
    733738                default:
    734                     throw new ArrayIndexOutOfBoundsException();
     739                    throw new ArrayIndexOutOfBoundsException(Integer.toString(column));
    735740                }
    736741            }
Note: See TracChangeset for help on using the changeset viewer.