daltskin / SmartThingsTerminal

SmartThings Terminal is a cross platform CLI tool for the SmartThings API - interact with your smart home from the command line.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Select device from different location crash

daltskin opened this issue · comments

Hmm, I think I know why the second crash is happening. It's not the keypress but when it reached some devices it crashes. I have multiple locations in my account, if I select a device from a different location (any device) it crashes with this trace )this one happened when I used a mouse to select a device in a non default location:

Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at SmartThingsTerminal.Scenarios.Devices.UpdateSettings[T](Object selectedItem)
at SmartThingsTerminal.Scenario.<>c__DisplayClass68_01.<GetClassListView>b__0(ListViewItemEventArgs args) at Terminal.Gui.ListView.OnSelectedChanged() at Terminal.Gui.ListView.MouseEvent(MouseEvent me) at Terminal.Gui.View.OnMouseEvent(MouseEvent mouseEvent) at Terminal.Gui.Application.ProcessMouseEvent(MouseEvent me) at Terminal.Gui.WindowsDriver.Terminal.Gui.IMainLoopDriver.MainIteration() at Terminal.Gui.MainLoop.MainIteration() at Terminal.Gui.Application.RunLoop(RunState state, Boolean wait) at Terminal.Gui.Application.Run(Toplevel view, Boolean closeDriver) at SmartThingsTerminal.Scenario.Run() at SmartThingsTerminal.Program.Init(Options opts) at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult1 result, Action`1 action)
at SmartThingsTerminal.Program.Main(String[] args)

Originally posted by @rboy1 in #8 (comment)