mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-28 12:56:02 +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;
|
SnapshotTableModel model;
|
||||||
|
|
||||||
|
Font lastFixedWidthFont;
|
||||||
|
Font fixedWidthBoldFont;
|
||||||
|
Font fixedWidthItalicFont;
|
||||||
|
|
||||||
protected TimeRadix getTimeRadix() {
|
protected TimeRadix getTimeRadix() {
|
||||||
Trace trace = model.getTrace();
|
Trace trace = model == null ? null : model.getTrace();
|
||||||
return trace == null ? TimeRadix.DEFAULT : trace.getTimeManager().getTimeRadix();
|
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) {
|
Font computePlainFont(GTableCellRenderingData data) {
|
||||||
return data.getValue() instanceof Address ? getFixedWidthFont() : getDefaultFont();
|
return data.getValue() instanceof Address ? getFixedWidthFont() : getDefaultFont();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user