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

Setting element's html control text property to string.Empty causes a crash #231

Open
bjsi opened this issue Jun 16, 2020 · 0 comments
Open
Assignees
Labels
bug Something isn't working sma-api SMA interface API

Comments

@bjsi
Copy link
Member

bjsi commented Jun 16, 2020

Description

Setting the IControlHtml text property to string.Empty seems to cause a crash. Changing string.Empty to " " stopped the crashing.

Steps to Reproduce

    public static IControlHtml GetFirstHtmlCtrl()
    {
      var ctrlGroup = Svc.SM.UI.ElementWdw.ControlGroup;
      var htmlCtrl = ctrlGroup?.GetFirstHtmlControl()?.AsHtml();
      return htmlCtrl;
    }

    ...

    var htmlCtrl = GetFirstHtmlCtrl();
    htmlCtrl.Text = string.Empty;    

Environment (fill where applicable)

  • While developing a new plugin, running in debug in prod.
  • Version: SMA 2.0.5 alpha 17
  • OS: Windows 10 64bit
@alexis- alexis- added bug Something isn't working sma-api SMA interface API labels Aug 3, 2020
@alexis- alexis- added this to the SMA 2.1.0 "Open-Beta" milestone Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sma-api SMA interface API
Development

No branches or pull requests

2 participants