Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Commit 4780e25

Browse files
committed
#21 Fixed null ref on exclusions
1 parent 3dbec46 commit 4780e25

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Notes.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Build an image to upload
2+
* Ctrl+Shift+P
3+
* Enter Docker Build
4+
* Enter the name of the image
5+
* Push the image via docker desktop
6+
17
# Build the docker image
28
* Navigate into SynoAI (cd SynoAI)
39
* docker build -t synoai:0.1 .

SynoAI/Controllers/CameraController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public async void Get(string id)
9999

100100
// Get any predictions that fall within the exclusion zones
101101
List<Tuple<AIPrediction, Zone>> exclusionZonePredictions = new List<Tuple<AIPrediction, Zone>>();
102-
if (camera.Exclusions.Count() > 0)
102+
if (camera.Exclusions != null && camera.Exclusions.Count() > 0)
103103
{
104104
for (int i = 0; i < validPredictions.Count; i++)
105105
{

0 commit comments

Comments
 (0)