HomeSeer / Plugin-SDK

Plugin development kit for the 4th major edition of the HomeSeer platform.
https://www.nuget.org/packages/HomeSeer-PluginSDK/
GNU Affero General Public License v3.0
20 stars 4 forks source link

IHsController.GetAllEvents exception if no events #341

Open pseudocoder opened 1 year ago

pseudocoder commented 1 year ago

Environment

HomeSeer

OS

Windows

HS Version

v4.2.15

Development

PSDK Version

v1.4.0.0

Language

VB

IDE

VS2022

Dev OS

Windows

Page

n/a

Plugin

my own under development

Problem

calling IHsController.GetAllEvents causes an error if there are no events:

HSCF.Communication.ScsServices.Communication.Messages.ScsRemoteException: 'Object reference not set to an instance of an object.'

Description

as above

Screenshots

n/a

Expected Behavior

I'd expect it to return an empty list if there are no event

Steps to Reproduce

Just call that method on a system with no events defined

Logs

spudwebb commented 1 year ago

Tracked as HS-1811