Merge remote-tracking branch 'origin/GP-6781_Dan_fixSnapshotTableNPE'

This commit is contained in:
Ryan Kurtz
2026-05-04 11:00:30 -04:00

View File

@@ -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();
}