Fix problems related with null configuration properties

FEA: ItEr65S06BugFixing
This commit is contained in:
Lorenzo Tilve 2010-12-16 12:32:38 +01:00
parent dd65d04880
commit 80bd3a84be
2 changed files with 3 additions and 3 deletions

View file

@ -73,9 +73,9 @@ public class Configuration extends BaseEntity {
private ProgressType progressType = ProgressType.SPREAD_PROGRESS;
private String companyLogoURL;
private String companyLogoURL = "";
private Boolean scenariosVisible;
private Boolean scenariosVisible = false;
public void setDefaultCalendar(BaseCalendar defaultCalendar) {
this.defaultCalendar = defaultCalendar;

View file

@ -89,7 +89,7 @@ public class TemplateController extends GenericForwardComposer {
}
public String getCompanyLogoURL() {
if (templateModel == null) {
if (templateModel == null || templateModel.getCompanyLogoURL() == null) {
return "";
}
return templateModel.getCompanyLogoURL().trim();