From f48017aeae002999d9d1080b1942e78c634f84b8 Mon Sep 17 00:00:00 2001 From: Ann Priestman Date: Tue, 5 Jun 2018 08:45:06 -0400 Subject: [PATCH] Fix unchecked exception warning. Change list name to standard capitalization. --- .../sleuthkit/autopsy/filesearch/DataSourcePanel.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/filesearch/DataSourcePanel.java b/Core/src/org/sleuthkit/autopsy/filesearch/DataSourcePanel.java index beb3a05277..55498625ef 100755 --- a/Core/src/org/sleuthkit/autopsy/filesearch/DataSourcePanel.java +++ b/Core/src/org/sleuthkit/autopsy/filesearch/DataSourcePanel.java @@ -65,10 +65,12 @@ public class DataSourcePanel extends javax.swing.JPanel { @Override public void mouseMoved(MouseEvent evt) { - JList DsList = (JList) evt.getSource(); - int index = DsList.locationToIndex(evt.getPoint()); - if (index > -1) { - DsList.setToolTipText(toolTipList.get(index)); + if (evt.getSource() instanceof JList) { + JList dsList = (JList) evt.getSource(); + int index = dsList.locationToIndex(evt.getPoint()); + if (index > -1) { + dsList.setToolTipText(toolTipList.get(index)); + } } } });