Updated the SpectralControl.ascx.cs , taking care of null values.