mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-21 16:56:41 +08:00
GP-6781: Fix NPE in Snapshot table
This commit is contained in:
+5
-5
@@ -176,8 +176,12 @@ public class DebuggerSnapshotTablePanel extends JPanel {
|
||||
|
||||
SnapshotTableModel model;
|
||||
|
||||
Font lastFixedWidthFont;
|
||||
Font fixedWidthBoldFont;
|
||||
Font fixedWidthItalicFont;
|
||||
|
||||
protected TimeRadix getTimeRadix() {
|
||||
Trace trace = model.getTrace();
|
||||
Trace trace = model == null ? null : model.getTrace();
|
||||
return trace == null ? TimeRadix.DEFAULT : trace.getTimeManager().getTimeRadix();
|
||||
}
|
||||
|
||||
@@ -212,10 +216,6 @@ public class DebuggerSnapshotTablePanel extends JPanel {
|
||||
};
|
||||
}
|
||||
|
||||
Font lastFixedWidthFont;
|
||||
Font fixedWidthBoldFont;
|
||||
Font fixedWidthItalicFont;
|
||||
|
||||
Font computePlainFont(GTableCellRenderingData data) {
|
||||
return data.getValue() instanceof Address ? getFixedWidthFont() : getDefaultFont();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user