Skip to content

Commit

Permalink
fix(pr): handle unset parent
Browse files Browse the repository at this point in the history
  • Loading branch information
wyvern8 committed Apr 16, 2018
1 parent 44edbee commit d884261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/EventHandlerPullRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export class EventHandlerPullRequest extends EventHandler {
initialDesc = 'Unknown Executor: ' + task.executor;
}

if (!parent.hash) {
if (!parent || !parent.hash) {
log.info('No Parent Hash Found. Creating Child Hash');
task.hash = AgentUtils.createMd5Hash(task);
} else {
Expand Down

0 comments on commit d884261

Please sign in to comment.