1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-02 21:23:37 +02:00

Add Homebrew path null check

This commit is contained in:
John Dallaway 2025-07-10 11:24:34 +01:00
parent 5783b82dea
commit b79728af95

View file

@ -44,7 +44,7 @@ public class Homebrew {
} }
} }
String defaultHomebrewPath = getDefaultHomebrewPath(); String defaultHomebrewPath = getDefaultHomebrewPath();
if (installationExists(defaultHomebrewPath)) { if ((defaultHomebrewPath != null) && installationExists(defaultHomebrewPath)) {
return defaultHomebrewPath; return defaultHomebrewPath;
} }
return null; return null;