diff --git a/src/Efi.cs b/src/Efi.cs index 4f6d7fd..d6724be 100644 --- a/src/Efi.cs +++ b/src/Efi.cs @@ -494,6 +494,9 @@ public class Efi { public static string GetHackBGRTLog() { try { var log = GetVariable("HackBGRTLog", EFI_HACKBGRT_GUID); + if (log.Data == null) { + return "(null)"; + } return new string(BytesToUInt16s(log.Data).Select(i => (char)i).ToArray()); } catch (Exception e) { return $"Log not found: {e.ToString()}";