mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-22 04:05:39 +00:00
GT-2856 Corrected restore project NPE observed when using large
repository.
This commit is contained in:
parent
85d11cc6ba
commit
1444b0c27b
@ -36,6 +36,7 @@ import ghidra.framework.main.FrontEndPlugin;
|
||||
import ghidra.framework.model.*;
|
||||
import ghidra.framework.plugintool.PluginTool;
|
||||
import ghidra.util.HelpLocation;
|
||||
import ghidra.util.SystemUtilities;
|
||||
import ghidra.util.bean.GGlassPane;
|
||||
import ghidra.util.bean.GGlassPanePainter;
|
||||
|
||||
@ -79,12 +80,12 @@ public class ProjectDataTablePanel extends JPanel {
|
||||
private void buildContent() {
|
||||
model = new ProjectDataTableModel(tool);
|
||||
model.addThreadedTableModelListener(new SelectPendingFilesListener());
|
||||
table = new GFilterTable<DomainFileInfo>(model) {
|
||||
table = new GFilterTable<>(model) {
|
||||
@Override
|
||||
protected GThreadedTablePanel<DomainFileInfo> createThreadedTablePanel(
|
||||
ThreadedTableModel<DomainFileInfo, ?> threadedModel) {
|
||||
|
||||
return new GThreadedTablePanel<DomainFileInfo>(threadedModel) {
|
||||
return new GThreadedTablePanel<>(threadedModel) {
|
||||
@Override
|
||||
protected GTable createTable(ThreadedTableModel<DomainFileInfo, ?> m) {
|
||||
// the table's default actions aren't that useful in the Front End
|
||||
@ -267,10 +268,11 @@ public class ProjectDataTablePanel extends JPanel {
|
||||
capacityExceeded = true;
|
||||
this.projectData.removeDomainFolderChangeListener(changeListener);
|
||||
model.setProjectData(null);
|
||||
|
||||
GGlassPane glassPane = (GGlassPane) gTable.getRootPane().getGlassPane();
|
||||
glassPane.removePainter(painter);
|
||||
glassPane.addPainter(painter);
|
||||
SystemUtilities.runSwingLater(() -> {
|
||||
GGlassPane glassPane = (GGlassPane) gTable.getRootPane().getGlassPane();
|
||||
glassPane.removePainter(painter);
|
||||
glassPane.addPainter(painter);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user