mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +00:00
7653 eliminate null check preventing proper reset
This commit is contained in:
parent
c86cdf5591
commit
ffce7d10b4
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Autopsy Forensic Browser
|
* Autopsy Forensic Browser
|
||||||
*
|
*
|
||||||
* Copyright 2019 Basis Technology Corp.
|
* Copyright 2019-2021 Basis Technology Corp.
|
||||||
* Contact: carrier <at> sleuthkit <dot> org
|
* Contact: carrier <at> sleuthkit <dot> org
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
@ -37,15 +37,15 @@ public final class RelationshipBrowser extends JPanel implements Lookup.Provider
|
|||||||
*/
|
*/
|
||||||
public RelationshipBrowser() {
|
public RelationshipBrowser() {
|
||||||
initComponents();
|
initComponents();
|
||||||
|
|
||||||
MessageViewer messagesViewer = new MessageViewer();
|
MessageViewer messagesViewer = new MessageViewer();
|
||||||
ContactsViewer contactsViewer = new ContactsViewer();
|
ContactsViewer contactsViewer = new ContactsViewer();
|
||||||
SummaryViewer summaryViewer = new SummaryViewer();
|
SummaryViewer summaryViewer = new SummaryViewer();
|
||||||
MediaViewer mediaViewer = new MediaViewer();
|
MediaViewer mediaViewer = new MediaViewer();
|
||||||
CallLogViewer callLogViewer = new CallLogViewer();
|
CallLogViewer callLogViewer = new CallLogViewer();
|
||||||
|
|
||||||
proxyLookup = new ModifiableProxyLookup(messagesViewer.getLookup());
|
proxyLookup = new ModifiableProxyLookup(messagesViewer.getLookup());
|
||||||
|
|
||||||
tabPane.add(summaryViewer.getDisplayName(), summaryViewer);
|
tabPane.add(summaryViewer.getDisplayName(), summaryViewer);
|
||||||
tabPane.add(messagesViewer.getDisplayName(), messagesViewer);
|
tabPane.add(messagesViewer.getDisplayName(), messagesViewer);
|
||||||
tabPane.add(callLogViewer.getDisplayName(), callLogViewer);
|
tabPane.add(callLogViewer.getDisplayName(), callLogViewer);
|
||||||
@ -95,13 +95,10 @@ public final class RelationshipBrowser extends JPanel implements Lookup.Provider
|
|||||||
}// </editor-fold>//GEN-END:initComponents
|
}// </editor-fold>//GEN-END:initComponents
|
||||||
|
|
||||||
private void tabPaneStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_tabPaneStateChanged
|
private void tabPaneStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_tabPaneStateChanged
|
||||||
if(currentSelection != null) {
|
((RelationshipsViewer) tabPane.getSelectedComponent()).setSelectionInfo(currentSelection);
|
||||||
((RelationshipsViewer) tabPane.getSelectedComponent()).setSelectionInfo(currentSelection);
|
|
||||||
}
|
|
||||||
|
|
||||||
Component selectedComponent = tabPane.getSelectedComponent();
|
Component selectedComponent = tabPane.getSelectedComponent();
|
||||||
if(selectedComponent instanceof Lookup.Provider) {
|
if (selectedComponent instanceof Lookup.Provider) {
|
||||||
Lookup lookup = ((Lookup.Provider)selectedComponent).getLookup();
|
Lookup lookup = ((Lookup.Provider) selectedComponent).getLookup();
|
||||||
proxyLookup.setNewLookups(lookup);
|
proxyLookup.setNewLookups(lookup);
|
||||||
}
|
}
|
||||||
}//GEN-LAST:event_tabPaneStateChanged
|
}//GEN-LAST:event_tabPaneStateChanged
|
||||||
|
Loading…
x
Reference in New Issue
Block a user