]> WPIA git - gigi.git/commitdiff
fix: NPE on points display page.
authorFelix Dörre <felix@dogcraft.de>
Tue, 16 Aug 2016 08:04:23 +0000 (10:04 +0200)
committerFelix Dörre <felix@dogcraft.de>
Tue, 16 Aug 2016 08:05:29 +0000 (10:05 +0200)
fixes #113

Change-Id: I3896e49282b405a70c7ff46a1611aa41532c51cc

src/org/cacert/gigi/output/AssurancesDisplay.java

index c412a4eb7b4ee7324fb31061c5d3823d14fb67b6..92acc6d843658c56c0f912c60179d294c0c0c218 100644 (file)
@@ -51,7 +51,7 @@ public class AssurancesDisplay implements Outputable {
                     vars.put("method", assurance.getMethod());
                     Name to = assurance.getTo();
                     if (assurer) {
-                        vars.put("linkId", assurance.getTo().getOwner().getId());
+                        vars.put("linkId", to == null ? "" : to.getOwner().getId());
                         vars.put("verbVal", to == null ? l.getTranslation("applicant's name removed") : to.getOwner().getId());
                         vars.put("myName", to == null ? l.getTranslation("applicant's name removed") : to);
                     } else {