mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Null check. Add ServiceDependencies folder to gitignore.
This commit is contained in:
parent
d940a2a4e3
commit
f53b33fb50
1
.gitignore
vendored
1
.gitignore
vendored
@ -286,3 +286,4 @@ Server/wwwroot/Downloads/Win-x86/*
|
||||
.vscode/launch.json
|
||||
.vscode/tasks.json
|
||||
Server/.config/dotnet-tools.json
|
||||
/Server/Properties/ServiceDependencies/*
|
||||
@ -952,7 +952,12 @@ namespace Remotely.Server.Services
|
||||
x.Id == targetUserID &&
|
||||
x.OrganizationID == orgID);
|
||||
|
||||
if (target?.DeviceGroups?.Any() == true)
|
||||
if (target is null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (target.DeviceGroups?.Any() == true)
|
||||
{
|
||||
foreach (var deviceGroup in target.DeviceGroups.ToList())
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user