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),