# HG changeset patch # User Christian Brabandt # Date 1457361005 -3600 # Node ID 6af4329b559217dd42c81a75b9d18f5b62d519d7 # Parent d036b4be99b094ea00e35af81726d770d0d0bb0e commit https://github.com/vim/vim/commit/4e329fcaf7122370a6d1815a30aaf29476d3f722 Author: Bram Moolenaar Date: Mon Mar 7 15:24:03 2016 +0100 patch 7.4.1507 Problem: Crash when starting a job fails. Solution: Check for the channel to be NULL. (idea by Yasuhiro Matsumoto) diff --git a/src/eval.c b/src/eval.c --- a/src/eval.c +++ b/src/eval.c @@ -15262,7 +15262,8 @@ f_job_start(typval_T *argvars UNUSED, ty #ifdef FEAT_CHANNEL /* If the channel is reading from a buffer, write lines now. */ - channel_write_in(job->jv_channel); + if (job->jv_channel != NULL) + channel_write_in(job->jv_channel); #endif theend: diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -744,6 +744,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1507, +/**/ 1506, /**/ 1505,