Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 75ce12e

Browse files
committed
check if extracted error message is null
1 parent 237a122 commit 75ce12e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.App/ViewModels/PullRequestCreationViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public PullRequestCreationViewModel(IRepositoryHost repositoryHost, ISimpleRepos
7979
//TODO:Will need a uniform solution to HTTP exception message handling
8080
var apiException = ex as ApiValidationException;
8181
var error = apiException?.ApiError?.Errors?.FirstOrDefault();
82-
notifications.ShowError(error.Message ?? ex.Message);
82+
notifications.ShowError(error?.Message ?? ex.Message);
8383
}
8484
});
8585
}

0 commit comments

Comments
 (0)