The exception is thrown when accessing a VF General page from a VF
that is not associated to a CSAR file (Imported from CSAR file).
The code is trying to access the CSAR file that does not exist.
Change-Id: I0df34e75911e4a912f50ff8993637952e32d48c6
Issue-ID: SDC-4013
Signed-off-by: andre.schmid <andre.schmid@est.tech>
if(this.$stateParams.componentCsar && this.$scope.component.lifecycleState === 'NOT_CERTIFIED_CHECKIN' && !this.$scope.isCreateMode()) {
this.$scope.importedToscaBrowseFileText = this.$scope.originComponent.name + ' (' + (this.$scope.originComponent as Resource).csarVersion + ')';
} else {
- this.$scope.importedToscaBrowseFileText = onboardCsarFilesMap[csarUUID][csarVersion];
+ if (onboardCsarFilesMap && onboardCsarFilesMap[csarUUID]) {
+ this.$scope.importedToscaBrowseFileText = onboardCsarFilesMap[csarUUID][csarVersion];
+ }
}
}
}