When the BasicButton is clicked and the PLCAddressClick is not empty, and the PLC is defined but not available. The program will crash on the BasicButton.vb line 366 with exception.
An unhandled exception of type 'System.NullReferenceException' occurred in MfgControl.AdvancedHMI.Drivers.dll
Additional information: Object reference not set to an instance of an object.
I am using AdvancedHMI version 399s and the AdvancedHMIDrivers.EthernetIPforCLXCom class.
Should I disable the button from being clicked if it cannot connect to the PLC or is there something I can add to get rid of this error.