| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bc4880a commit a4c3170
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + Fix for a crash when loading environments with no info. | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -119,11 +119,11 @@ export class InterpreterDisplay implements IInterpreterDisplay, IExtensionSingle | |||
| 119 | 119 | ); | |
| 120 | 120 | this.interpreterPath = interpreter.path; | |
| 121 | 121 | } | |
| 122 | - let text = interpreter.detailedDisplayName!; | ||
| 122 | + let text = interpreter.detailedDisplayName; | ||
| 123 | 123 | if (this.experiments.inExperimentSync(InterpreterStatusBarPosition.Pinned)) { | |
| 124 | - text = text.startsWith('Python') ? text.substring('Python'.length).trim() : text; | ||
| 124 | + text = text?.startsWith('Python') ? text?.substring('Python'.length)?.trim() : text; | ||
| 125 | 125 | } | |
| 126 | - this.statusBar.text = text; | ||
| 126 | + this.statusBar.text = text!; | ||
| 127 | 127 | this.currentlySelectedInterpreterPath = interpreter.path; | |
| 128 | 128 | } else { | |
| 129 | 129 | this.statusBar.tooltip = ''; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments