GP-6781: Fix NPE in Snapshot table

This commit is contained in:
Dan
2026-05-04 14:44:46 +00:00
parent 6e3681cce2
commit 25674f95e2
@@ -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();
}