Fixed functions

This commit is contained in:
Luca Frosini 2021-12-06 17:50:19 +01:00
parent 529aa1bce4
commit 4c171f90f5
2 changed files with 5 additions and 5 deletions

View File

@ -107,7 +107,7 @@ public class SecretHolder {
public String getName() {
for(Secret secret : secrets) {
try {
secret.getName();
return secret.getName();
}catch (Exception e) {
// trying the next one
}
@ -118,7 +118,7 @@ public class SecretHolder {
public String getSurname() {
for(Secret secret : secrets) {
try {
secret.getSurname();
return secret.getSurname();
}catch (Exception e) {
// trying the next one
}
@ -129,7 +129,7 @@ public class SecretHolder {
public String getEMail() {
for(Secret secret : secrets) {
try {
secret.getEMail();
return secret.getEMail();
}catch (Exception e) {
// trying the next one
}
@ -141,7 +141,7 @@ public class SecretHolder {
public String getTitle() {
for(Secret secret : secrets) {
try {
secret.getTitle();
return secret.getTitle();
}catch (Exception e) {
// trying the next one
}

View File

@ -111,7 +111,7 @@ public class GCubeSecret extends Secret {
@Override
public String getEMail() {
return getPortalUser().getName();
return getPortalUser().getEMail();
}
@Override