Skip to content

Commit

Permalink
fix nullreferenceexception in update_component action
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikx committed Apr 25, 2020
1 parent a3c3a57 commit ffbebd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static void RunActions(Configuration.Host host, bool failed)
}
}
}
if (action.actiontype == Configuration.Host.Action.update_component && host.Actions.Where(x => x.incident_parameters.component_id == action.component_paramters.component_id).Count() < 1)
if (action.actiontype == Configuration.Host.Action.update_component && host.Actions.Where(x => x.incident_parameters != null && x.incident_parameters.component_id == action.component_paramters.component_id).Count() < 1)
{
try
{
Expand Down

0 comments on commit ffbebd6

Please sign in to comment.