We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec44dc1 commit e5bf57bCopy full SHA for e5bf57b
Rubberduck.Core/UI/ViewModelBase.cs
@@ -51,9 +51,13 @@ protected virtual void OnErrorsChanged(string propertyName = null)
51
52
public IEnumerable GetErrors(string propertyName)
53
{
54
- return _errors.TryGetValue(propertyName, out var errorList)
55
- ? errorList
56
- : null;
+ if (propertyName != null)
+ {
+ return _errors.TryGetValue(propertyName, out var errorList)
57
+ ? errorList
58
+ : null;
59
+ }
60
+ return null;
61
}
62
63
public bool HasErrors => _errors.Any();
0 commit comments