mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-25 22:17:51 +01:00
Guard against nulls in InsertPullRequest
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user