PY-85970 Handle cases where no interpreter is selected in the PyPackagingToolWindow. Add UI updates for missing interpreter state.

When the user typed in the search field without a configured interpreter:
1. textChanged → handleSearch() → accesses manager property
2. manager getter accesses managerUI.manager
3. managerUI is lateinit var, NOT initialized when sdk == null
4. UninitializedPropertyAccessException thrown during Swing text rendering
5. Exception corrupts Swing component state → text displays reversed

Fix:
- Add early return in handleSearch() when currentSdk is null

GitOrigin-RevId: 01f5607c8150ca73cc96fdd691820b08c4de96fa
This commit is contained in:
Timur Malanin
2025-12-23 22:00:19 +00:00
committed by intellij-monorepo-bot
parent f43c6f3ed0
commit 755e75cb4b
3 changed files with 119 additions and 59 deletions
@@ -431,6 +431,7 @@ python.sdk.creating.python.module.structure=Creating Python Module Structure
python.sdk.creating.python.sdk=Creating Python SDK
python.sdk.pipenv.has.been.selected=Pipenv interpreter has been already added, select ''{0}'' in your interpreters list
python.sdk.there.is.no.interpreter=No interpreter
python.sdk.no.interpreter.selected=No interpreter selected
python.sdk.no.interpreter.configured.warning=No Python interpreter configured for the project
python.sdk.no.interpreter.selection=No Python interpreter selected
python.sdk.choose.valid.interpreter=Choose a valid Python interpreter