@@ -157,16 +157,16 @@ void ReadMobileConfig()
157157 }
158158
159159 MobileBuildPlatforms . Add ( platform , new Platform (
160- new Agent ( v [ "build" ] [ "image" ] . ToString ( ) ,
161- Utilities . GetEnumValue < FlavorType > ( v [ "build" ] [ "flavor" ] . ToString ( ) ) ,
162- Utilities . GetEnumValue < ResourceType > ( v [ "build" ] [ "type" ] . ToString ( ) ) ) ,
160+ new Agent ( v ? [ "build" ] ? [ "image" ] ? . ToString ( ) ?? string . Empty ,
161+ Utilities . GetEnumValue < FlavorType > ( v ? [ "build" ] ? [ "flavor" ] ? . ToString ( ) ?? string . Empty ) ,
162+ Utilities . GetEnumValue < ResourceType > ( v ? [ "build" ] ? [ "type" ] ? . ToString ( ) ?? string . Empty ) ) ,
163163 platform ) ) ;
164164
165165 MobileTestPlatforms . Add ( platform , new Platform (
166- new Agent ( v [ "run" ] [ "image" ] . ToString ( ) ,
167- Utilities . GetEnumValue < FlavorType > ( v [ "run" ] [ "flavor" ] . ToString ( ) ) ,
168- Utilities . GetEnumValue < ResourceType > ( v [ "run" ] [ "type" ] . ToString ( ) ) ,
169- v [ "run" ] [ "model" ] ? . ToString ( ) ) ,
166+ new Agent ( v ? [ "run" ] ? [ "image" ] ? . ToString ( ) ?? string . Empty ,
167+ Utilities . GetEnumValue < FlavorType > ( v ? [ "run" ] ? [ "flavor" ] ? . ToString ( ) ?? string . Empty ) ,
168+ Utilities . GetEnumValue < ResourceType > ( v ? [ "run" ] ? [ "type" ] ? . ToString ( ) ?? string . Empty ) ,
169+ v ? [ "run" ] ? [ "model" ] ? . ToString ( ) ) ,
170170 platform ) ) ;
171171 }
172172 }
0 commit comments