[ADF-2265] fix user preference null value (#2948)

* fix user preference null value

* fix method call test public
This commit is contained in:
Eugenio Romano
2018-02-15 09:30:35 +00:00
committed by Denys Vuika
parent 63a146616b
commit 6e57cd3e17
4 changed files with 11 additions and 5 deletions

View File

@@ -191,8 +191,8 @@ export class AuthenticationService {
* The method save the AUTH ticket in the Storage
*/
saveTicketAuth(): void {
if (this.alfrescoApi.getInstance() && (<any>this.alfrescoApi.getInstance()).getTicketAuth()) {
this.storage.setItem('ticket-AUTH', (<any>this.alfrescoApi.getInstance()).getTicketAuth());
if (this.alfrescoApi.getInstance() && (<any> this.alfrescoApi.getInstance()).getTicketAuth()) {
this.storage.setItem('ticket-AUTH', (<any> this.alfrescoApi.getInstance()).getTicketAuth());
}
}