Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System capability manager - Passing null in _createDeprecatedDisplayCapabilities #389

Closed
crokita opened this issue Mar 2, 2021 · 0 comments · Fixed by #390
Closed

System capability manager - Passing null in _createDeprecatedDisplayCapabilities #389

crokita opened this issue Mar 2, 2021 · 0 comments · Fixed by #390
Labels
bug Something isn't working

Comments

@crokita
Copy link
Contributor

crokita commented Mar 2, 2021

Bug Report

The SystemCapabilityManager._createDeprecatedDisplayCapabilities method sets image fields and text fields for the created DisplayCapability struct. There is a possibility of passing in null, which causes an error in the library.

Reproduction Steps
  1. Create a DisplayCapabilities struct
  2. Set setTextFields or setImageFields to null
Expected Behavior

Null if checks should be set and prevent the code from being ran

Observed Behavior

The code is ran and an error happens

Browser & Version Information

All versions are affected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants