1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-02 11:44:01 +03:00

fixed wsl crash when default distro is not available (fixes #2130)

This commit is contained in:
Eugene Pankov 2020-02-18 10:52:17 +01:00
parent 8a5846ff81
commit d0ddd82906

View File

@ -52,7 +52,7 @@ export class WSLShellProvider extends ShellProvider {
if (null != lxss && null != lxss.DefaultDistribution) {
const defaultDistKey = wnr.getRegistryKey(wnr.HK.CU, lxssPath + '\\' + String(lxss.DefaultDistribution.value))
if (defaultDistKey.DistributionName) {
if (defaultDistKey?.DistributionName) {
const shell: Shell = {
id: 'wsl',
name: 'WSL / Default distro',