From 25674f95e214561fabab27f7bcf80712397dbdcc Mon Sep 17 00:00:00 2001 From: Dan <46821332+nsadeveloper789@users.noreply.github.com> Date: Mon, 4 May 2026 14:44:46 +0000 Subject: [PATCH] GP-6781: Fix NPE in Snapshot table --- .../debug/gui/time/DebuggerSnapshotTablePanel.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/time/DebuggerSnapshotTablePanel.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/time/DebuggerSnapshotTablePanel.java index 6052ff5106..ba64e2f977 100644 --- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/time/DebuggerSnapshotTablePanel.java +++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/time/DebuggerSnapshotTablePanel.java @@ -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(); }