From a87614024fe93041cf9888f061c53d307ee16d98 Mon Sep 17 00:00:00 2001 From: Jin IGARASHI Date: Fri, 24 Jul 2020 22:44:01 +0900 Subject: [PATCH] fixed bug --- package.json | 2 +- src/inp/InpCurves.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 561b3e1..f95d3d5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@watergis/geojson2inp", - "version": "0.1.2", + "version": "0.1.3", "description": "This module converts GeoJSON to EPANET INP file", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/inp/InpCurves.ts b/src/inp/InpCurves.ts index a04da41..3a783d1 100644 --- a/src/inp/InpCurves.ts +++ b/src/inp/InpCurves.ts @@ -17,6 +17,7 @@ export default class InpPumps extends InpBase { } addContent(data: PumpCurve) { + if (!data)return; const contents = [ pad(data.id, 16), pad(data.flow.toString(), 12),