Friday, November 24, 2017

Policy Plus - Fix crash after searching for policies

A helpful Policy Plus user reported a crash bug today. If the search feature is used to locate a policy before the user opens any categories and the setting editor window is closed with the OK button, Policy Plus will crash with a NullReferenceException. This happens because the UI-smoothness-enhanced ShowSettingEditor function tries to determine whether the current category is still visible, but if no categories have been visited, that variable is null and things break.

Adding a null check fixed the problem. The Debug build has been updated.

No comments:

Post a Comment