diff --git a/projects/common/id.service.ts b/projects/common/id.service.ts index 1ac383e16c8a501315dbffcac493df7a1a350704..96dc540ba15427b082dcef4ebbb3dbafcffc546b 100644 --- a/projects/common/id.service.ts +++ b/projects/common/id.service.ts @@ -28,6 +28,9 @@ export class IdService { } getNewID(type: string): string { + if (!type) { + throw Error('ID-Service: No type given!'); + } do { this.idCounter[type] += 1; }