Fixed wrong method and style a little

This commit is contained in:
Vito Albano
2016-10-03 13:41:34 +01:00
parent ab1f65d44b
commit 2219047c1a
2 changed files with 10 additions and 5 deletions

View File

@@ -60,7 +60,12 @@ export class BpmUserService {
* Call js api to get current user profile picture
*/
callApiGetProfilePicture() {
return this.authService.getAlfrescoApi().activiti.profileApi.getProfile();
try {
return this.authService.getAlfrescoApi().activiti.profileApi.getProfilePicture();
} catch (exc) {
console.error(exc);
return null;
}
}
/**