fixed speaker title when not present

This commit is contained in:
s5260822 2025-03-22 21:18:30 +01:00
parent f2f941f4d6
commit fc63958640

View file

@ -132,7 +132,11 @@ public class Speaker_MongoDB_Impl extends Speaker implements MongoOperations<Spe
tex.append("\\end{minipage}\n");
tex.append("\\begin{minipage}{0.5\\textwidth}\n");
tex.append("\\begin{tabular}{r l}\n");
tex.append("Name & ").append(this.getTitle()).append(" ").append(this.getFirstName()).append(" ").append(this.getName()).append("\\\\\n");
if (this.getTitle() != null) {
tex.append("Name & ").append(this.getTitle()).append(" ").append(this.getFirstName()).append(" ").append(this.getName()).append("\\\\\n");
} else {
tex.append("Name & ").append(this.getFirstName()).append(" ").append(this.getName()).append("\\\\\n");
}
tex.append("Fraktion & ").append(this.getParty()).append("\\\\\n");
if (this.getReligion() != null) {
tex.append("Religion & ").append(this.getSterbedatum()).append("\\\\\n"); // only show if available