Skip to content

Commit

Permalink
minor fix on wps directive app profile loading
Browse files Browse the repository at this point in the history
  • Loading branch information
jahow committed Sep 29, 2017
1 parent b5c806b commit ab8fc3d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,13 @@
// parse application profile as JSON (if not already an object)
// application profile holds 2 arrays: inputs and outputs
var applicationProfile = scope.wpsLink.applicationProfile;
if (typeof applicationProfile === 'string') {
if (applicationProfile && typeof applicationProfile === 'string') {
try {
applicationProfile = JSON.parse(applicationProfile);
}
catch (e) {
console.warn('Error while loading application profile.');
console.warn('Error while loading application profile.',
applicationProfile);
}
}

Expand Down

0 comments on commit ab8fc3d

Please sign in to comment.