From b79728af95f305db05397cd82a762ab02f322957 Mon Sep 17 00:00:00 2001 From: John Dallaway Date: Thu, 10 Jul 2025 11:24:34 +0100 Subject: [PATCH] Add Homebrew path null check --- .../utils/org/eclipse/cdt/internal/core/Homebrew.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/internal/core/Homebrew.java b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/internal/core/Homebrew.java index 4c239479c7e..ad2938d7ee3 100644 --- a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/internal/core/Homebrew.java +++ b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/internal/core/Homebrew.java @@ -44,7 +44,7 @@ public class Homebrew { } } String defaultHomebrewPath = getDefaultHomebrewPath(); - if (installationExists(defaultHomebrewPath)) { + if ((defaultHomebrewPath != null) && installationExists(defaultHomebrewPath)) { return defaultHomebrewPath; } return null;