@@ -1085,22 +1085,28 @@ private void NextVersionDownloadComplete(object sender, AsyncCompletedEventArgs
10851085 nextVersionUpdateOneLabel . Visibility = Visibility . Visible ;
10861086 nextVersionUpdateTwoLabel . Visibility = Visibility . Hidden ;
10871087 nextVersionUpdateThreeLabel . Visibility = Visibility . Hidden ;
1088+ nextVersionFeaturesLabel . Visibility = Visibility . Visible ;
10881089
1089- if ( nextVersionInfo . NewFeatures [ 0 ] == "" ) {
1090- nextVersionUpdateOneLabel . Content = "Feature list coming soon..." ;
1091- }
1092- else {
1093- nextVersionUpdateOneLabel . Content = "1. " + nextVersionInfo . NewFeatures [ 0 ] ;
1094- }
1090+ try {
1091+ if ( nextVersionInfo . NewFeatures [ 0 ] == "" ) {
1092+ nextVersionUpdateOneLabel . Content = "A feature list is not yet available for this version." ;
1093+ }
1094+ else {
1095+ nextVersionUpdateOneLabel . Content = "1. " + nextVersionInfo . NewFeatures [ 0 ] ;
1096+ }
10951097
1096- if ( nextVersionInfo . NewFeatures [ 1 ] != "" ) {
1097- nextVersionUpdateTwoLabel . Visibility = Visibility . Visible ;
1098- nextVersionUpdateTwoLabel . Content = "2. " + nextVersionInfo . NewFeatures [ 1 ] ;
1099- }
1098+ if ( nextVersionInfo . NewFeatures [ 1 ] != "" ) {
1099+ nextVersionUpdateTwoLabel . Visibility = Visibility . Visible ;
1100+ nextVersionUpdateTwoLabel . Content = "2. " + nextVersionInfo . NewFeatures [ 1 ] ;
1101+ }
11001102
1101- if ( nextVersionInfo . NewFeatures [ 2 ] != "" ) {
1102- nextVersionUpdateThreeLabel . Visibility = Visibility . Visible ;
1103- nextVersionUpdateThreeLabel . Content = "3. " + nextVersionInfo . NewFeatures [ 2 ] ;
1103+ if ( nextVersionInfo . NewFeatures [ 2 ] != "" ) {
1104+ nextVersionUpdateThreeLabel . Visibility = Visibility . Visible ;
1105+ nextVersionUpdateThreeLabel . Content = "3. " + nextVersionInfo . NewFeatures [ 2 ] ;
1106+ }
1107+ }
1108+ catch ( IndexOutOfRangeException ) {
1109+ nextVersionUpdateOneLabel . Content = "A feature list is not yet available for this version." ;
11041110 }
11051111 updateResponse = true ;
11061112 }
0 commit comments