mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 01:07:42 +00:00
Merge pull request #7000 from kellykelly3/DataContentPanel-NPE-Issue
Fixed NPE that will found when integrating all of the content viewer …
This commit is contained in:
commit
faf4e9a70a
@ -140,6 +140,8 @@ public class DataContentPanel extends javax.swing.JPanel implements DataContent,
|
||||
workerThread = null;
|
||||
}
|
||||
|
||||
currentNode = null;
|
||||
|
||||
// Reset everything
|
||||
for (int index = 0; index < jTabbedPane1.getTabCount(); index++) {
|
||||
jTabbedPane1.setEnabledAt(index, false);
|
||||
@ -299,7 +301,7 @@ public class DataContentPanel extends javax.swing.JPanel implements DataContent,
|
||||
|
||||
try {
|
||||
WorkerResults results = get();
|
||||
|
||||
currentNode = node;
|
||||
if (results != null) {
|
||||
updateTabs(results.getNode(), results.getSupportedIndices(), results.getPreferredViewerIndex());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user