diff --git a/python/src/com/jetbrains/python/sdk/PythonSdkUpdater.java b/python/src/com/jetbrains/python/sdk/PythonSdkUpdater.java index b5af93220d9b..68c824b5e405 100644 --- a/python/src/com/jetbrains/python/sdk/PythonSdkUpdater.java +++ b/python/src/com/jetbrains/python/sdk/PythonSdkUpdater.java @@ -508,7 +508,11 @@ public final class PythonSdkUpdater { } private static @NotNull List getBundledStubs() { - VirtualFile bundledStubRoot = StandardFileSystems.local().findFileByPath(PythonHelpersLocator.findPathStringInHelpers("bundled_stubs")); + var helpersPath = PythonHelpersLocator.findPathStringInHelpers("bundled_stubs"); + if (helpersPath.isEmpty()) { + return Collections.emptyList(); + } + VirtualFile bundledStubRoot = StandardFileSystems.local().findFileByPath(helpersPath); if (bundledStubRoot == null) return Collections.emptyList(); return List.of(bundledStubRoot); }