Skip to content

Commit a2d8372

Browse files
committed
fix: null check
1 parent 7e56805 commit a2d8372

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mhlabs/cfn-diagram",
3-
"version": "1.1.11",
3+
"version": "1.1.12",
44
"description": "CLI tool to visualise CloudFormation templates as draw.io or HTML diagrams",
55
"main": "index.js",
66
"scripts": {

resources/JsonUtil.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function createPseudoResources(template, current) {
22
current = current || template.Resources;
33
for (var k in current) {
4-
if (current[k]["Fn::Join"]) {
4+
if (current[k] && current[k]["Fn::Join"]) {
55
const joinList = current[k]["Fn::Join"][1]
66
current[k] = (Array.isArray(joinList) ? joinList : [joinList]).join(current[k]["Fn::Join"][0]);
77
}

0 commit comments

Comments
 (0)