Ignore:
Timestamp:
2017-04-10T03:57:16+02:00 (7 years ago)
Author:
Don-vip
Message:

findbugs - BC_UNCONFIRMED_CAST_OF_RETURN

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTransferHandler.java

    r10755 r11881  
    6161        final int insertRow;
    6262        if (support.isDrop()) {
    63             insertRow = ((JTable.DropLocation) support.getDropLocation()).getRow();
     63            DropLocation dl = support.getDropLocation();
     64            if (dl instanceof JTable.DropLocation) {
     65                insertRow = ((JTable.DropLocation) dl).getRow();
     66            } else {
     67                insertRow = 0;
     68            }
    6469        } else {
    6570            int selection = destination.getSelectedRow();
Note: See TracChangeset for help on using the changeset viewer.