mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-07-30 07:18:37 -09:00
Fix NullPointerException in BundleStatusTableModel.bundleBuilt
getStatus(bundle) returns null when the built bundle is not tracked in the table model's map (e.g. a bundle built programmatically rather than added through the Bundle Manager). The bundleBuilt handler dereferenced it unconditionally, throwing an uncaught NPE on the Swing thread. Guard the status the same way bundleException() already does.
This commit is contained in:
@@ -300,9 +300,11 @@ public class BundleStatusTableModel
|
||||
if (summary != null) {
|
||||
Swing.runLater(() -> {
|
||||
BundleStatus status = getStatus(bundle);
|
||||
status.setSummary(summary);
|
||||
int rowIndex = getRowIndex(status);
|
||||
fireTableRowsUpdated(rowIndex, rowIndex);
|
||||
if (status != null) {
|
||||
status.setSummary(summary);
|
||||
int rowIndex = getRowIndex(status);
|
||||
fireTableRowsUpdated(rowIndex, rowIndex);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user