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

Commit b995428

Browse files
committed
Don't throw exceptions, if it's null we'll deal with it later
1 parent f856aa8 commit b995428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.App/Models/ConnectionRepositoryHostMap.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class ConnectionRepositoryHostMap : IConnectionRepositoryHostMap
1010
{
1111
[ImportingConstructor]
1212
public ConnectionRepositoryHostMap(IUIProvider provider, IRepositoryHosts hosts)
13-
: this(provider.GetService<IConnection>(), hosts)
13+
: this(provider.TryGetService<IConnection>(), hosts)
1414
{
1515
}
1616

0 commit comments

Comments
 (0)