Skip to content

Ghidra is a software reverse engineering (SRE) framework

GT-3163 - fixed NPE in db viewer

dragonmacheraf8f1e6484de
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/debug/DbViewerComponent.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/debug/DbViewerComponent.java
index 456a9d3888..d92e438104 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/debug/DbViewerComponent.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/debug/DbViewerComponent.java
@@ -96,8 +96,8 @@ class DbViewerComponent extends JPanel {
tableStats.clear();
dbh = null;
dbListener = null;
- invalidate();
- getParent().repaint();
+
+ revalidate();
}
}
@@ -127,10 +127,10 @@ class DbViewerComponent extends JPanel {
/**
* Get the statistics for the specified table.
- * @param table
+ * @param table the table
* @return arrays containing statistics. Element 0 provides
- * statsitics for primary table, element 1 provides combined
- * statsitics for all index tables. Remaining array elements
+ * statistics for primary table, element 1 provides combined
+ * statistics for all index tables. Remaining array elements
* should be ignored since they have been combined into element 1.
*/
private TableStatistics[] getStats(Table table) {
@@ -189,9 +189,7 @@ class DbViewerComponent extends JPanel {
southPanel = createSouthPanel(t.table);
add(southPanel, BorderLayout.CENTER);
}
- //invalidate();
- validate();
- //repaint();
+ revalidate();
}
private JPanel createSouthPanel(Table table) {