Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Validation error for 'null' values #123

Closed
RazzM13 opened this issue Mar 28, 2018 · 0 comments
Closed

Validation error for 'null' values #123

RazzM13 opened this issue Mar 28, 2018 · 0 comments

Comments

@RazzM13
Copy link
Contributor

RazzM13 commented Mar 28, 2018

Apparently, when cfn-lint encounters a null value in a template, it is unable to process it and throws an exception.

Steps to reproduce:

  1. Create a test.yaml file that triggers a null value exception, perhaps with the following contents:
Resources:
  MyBucket:
    Type: 'AWS::S3::Bucket'
    Properties:
      Tags: null
  1. Attempt to validate the file:
    cfn-lint validate test.yaml
  2. Observe the output:
    validate.log

Expected: Processing to continue and a standard validation error to be displayed at the end.
Actual: An exceptions is logged ... uncaughtException: Cannot convert undefined or null to object ... and processing stops.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants