Guard against nulls in InsertPullRequest

This commit is contained in:
Cyberboss
2017-11-12 01:12:35 -05:00
parent 48fa835f4b
commit 647b698076
+2
View File
@@ -138,6 +138,8 @@ namespace TGControlPanel
/// <param name="isChecked">If the item should be checked</param>
void InsertPullRequest(Issue I, bool isChecked)
{
if (I == null)
return;
bool needsTesting = false;
foreach (var J in I.Labels)
if (J.Name.ToLower().Contains("test"))