Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 03833e0

Browse files
committed
[Core] Prevent NRE. If we have no error code, then there's not much we can log about it anyway
1 parent ff6be83 commit 03833e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionItem.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,6 +1895,9 @@ public bool Cancelled {
18951895

18961896
public void RegisterError(string errorCode)
18971897
{
1898+
if (errorCode == null)
1899+
return;
1900+
18981901
if (errors == null) {
18991902
errors = new Dictionary<string, int> ();
19001903
SetProperty (errors, "Errors");

0 commit comments

Comments
 (0)