File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Assets/MixedRealityToolkit/Inspectors/Profiles Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -211,10 +211,14 @@ protected override ServiceConfigurationProperties GetDataProviderConfigurationPr
211211 /// <inheritdoc/>
212212 protected override IMixedRealityServiceConfiguration GetDataProviderConfiguration ( int index )
213213 {
214- var configurations = ( target as MixedRealityInputSystemProfile ) ? . DataProviderConfigurations ;
215- if ( configurations != null && index >= 0 && index < configurations . Length )
214+ MixedRealityInputSystemProfile targetProfile = target as MixedRealityInputSystemProfile ;
215+ if ( targetProfile != null )
216216 {
217- return configurations [ index ] ;
217+ var configurations = targetProfile . DataProviderConfigurations ;
218+ if ( configurations != null && index >= 0 && index < configurations . Length )
219+ {
220+ return configurations [ index ] ;
221+ }
218222 }
219223
220224 return null ;
You can’t perform that action at this time.
0 commit comments