File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -726,8 +726,12 @@ class SystemCapabilityManager extends _SubManagerBase {
726726 const convertedCapabilities = new DisplayCapabilities ( ) ;
727727 convertedCapabilities . setDisplayType ( DisplayType . SDL_GENERIC ) ; // deprecated but it is mandatory...
728728 convertedCapabilities . setDisplayName ( displayName ) ;
729- convertedCapabilities . setTextFields ( defaultMainWindow . getTextFields ( ) ) ;
730- convertedCapabilities . setImageFields ( defaultMainWindow . getImageFields ( ) ) ;
729+ if ( defaultMainWindow . getTextFields ( ) !== null && defaultMainWindow . getTextFields ( ) !== undefined ) {
730+ convertedCapabilities . setTextFields ( defaultMainWindow . getTextFields ( ) ) ;
731+ }
732+ if ( defaultMainWindow . getImageFields ( ) !== null && defaultMainWindow . getImageFields ( ) !== undefined ) {
733+ convertedCapabilities . setImageFields ( defaultMainWindow . getImageFields ( ) ) ;
734+ }
731735 convertedCapabilities . setTemplatesAvailable ( defaultMainWindow . getTemplatesAvailable ( ) ) ;
732736 convertedCapabilities . setNumCustomPresetsAvailable ( defaultMainWindow . getNumCustomPresetsAvailable ( ) ) ;
733737 convertedCapabilities . setMediaClockFormats ( [ ] ) ; // mandatory field but allows empty array
You can’t perform that action at this time.
0 commit comments