If `writeOutput` gets a null value it writes to console. So in the case where `argv.c` is null `getJSONFileName` will return `null` and cause `writeOutput` to write to console.