From c97527b555a4a9e78bce6c9d3869c4a40f7d8489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C5=93ur?= Date: Sun, 3 Nov 2024 23:48:19 +0100 Subject: [PATCH] Crash fix: "Invalid parameter not satisfying: aString != nil" (#7226) --- macosx/InfoGeneralViewController.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/InfoGeneralViewController.mm b/macosx/InfoGeneralViewController.mm index dec78f267..3a28a0067 100644 --- a/macosx/InfoGeneralViewController.mm +++ b/macosx/InfoGeneralViewController.mm @@ -69,7 +69,7 @@ self.fLastDataLabel.hidden = location ? YES : NO; self.fLastDataLocationField.hidden = location ? YES : NO; - self.fLastDataLocationField.stringValue = location ? @"" : lastKnownDataLocation.stringByAbbreviatingWithTildeInPath; + self.fLastDataLocationField.stringValue = location ? @"" : lastKnownDataLocation.stringByAbbreviatingWithTildeInPath ?: @""; self.fLastDataLocationField.toolTip = location ? @"" : lastKnownDataLocation; self.fRevealDataButton.hidden = location ? NO : YES;