atlasmap-attic / atlasmap-ui

An Angular2 module for designing Atlasmap mapping definitions
Apache License 2.0
9 stars 8 forks source link

Error fetching validation data when removing last mapping #100

Open igarashitm opened 7 years ago

igarashitm commented 7 years ago

I guess it's trying to validate empty mapping and receive empty result. UI should just ignore it.

mapping.management.service.ts:332 Error fetching validation data. {error: TypeError: Cannot set property 'validationErrors' of null
    at eval (http://localhost:3000/app/lib…, url: "http://localhost:8585/v2/atlas/mapping/validate", request: {…}}error: TypeError: Cannot set property 'validationErrors' of null
    at eval (http://localhost:3000/app/lib/syndesis-data-mapper/services/mapping.management.service.js:301:38)
    at ZoneDelegate.invoke (http://localhost:3000/node_modules/zone.js/dist/zone.js:392:26)
    at Object.onInvoke (http://localhost:3000/node_modules/@angular/core/bundles/core.umd.js:3922:33)
    at ZoneDelegate.invoke (http://localhost:3000/node_modules/zone.js/dist/zone.js:391:32)
    at Zone.run (http://localhost:3000/node_modules/zone.js/dist/zone.js:142:43)
    at http://localhost:3000/node_modules/zone.js/dist/zone.js:873:57
    at ZoneDelegate.invokeTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:425:31)
    at Object.onInvokeTask (http://localhost:3000/node_modules/@angular/core/bundles/core.umd.js:3913:33)
    at ZoneDelegate.invokeTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:424:36)
    at Zone.runTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:192:47)request: {AtlasMapping: {…}}url: "http://localhost:8585/v2/atlas/mapping/validate"__proto__: Object