From 1615831207262558654877273662652860374756 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Thu, 22 May 2025 15:06:28 -0400 Subject: Fix formatting nullptr --- binaryninjaapi.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index ff23cbd2..942f9d56 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -20976,6 +20976,8 @@ template struct fmt::formatter> fmt::formatter inner; format_context::iterator format(const BinaryNinja::Ref& obj, format_context& ctx) const { + if (obj.GetPtr() == nullptr) + return fmt::format_to(ctx.out(), "{}", ""); return inner.format(*obj.GetPtr(), ctx); } constexpr auto parse(format_parse_context& ctx) -> format_parse_context::iterator { return inner.parse(ctx); } -- cgit v1.3.1