File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
v2rayN/ServiceLib/ViewModels Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,11 @@ private async Task GetClashProxies(bool refreshUI)
174
174
175
175
public void RefreshProxyGroups ( )
176
176
{
177
+ if ( _proxies == null )
178
+ {
179
+ return ;
180
+ }
181
+
177
182
var selectedName = SelectedGroup ? . Name ;
178
183
_proxyGroups . Clear ( ) ;
179
184
@@ -229,7 +234,7 @@ public void RefreshProxyGroups()
229
234
else
230
235
{
231
236
SelectedGroup = _proxyGroups . First ( ) ;
232
- }
237
+ }
233
238
}
234
239
else
235
240
{
@@ -297,8 +302,10 @@ private void RefreshProxyDetails(bool c)
297
302
298
303
private ProxiesItem ? TryGetProxy ( string name )
299
304
{
300
- if ( _proxies is null )
305
+ if ( _proxies == null )
306
+ {
301
307
return null ;
308
+ }
302
309
_proxies . TryGetValue ( name , out var proxy2 ) ;
303
310
if ( proxy2 != null )
304
311
{
You can’t perform that action at this time.
0 commit comments