]> WPIA git - gigi.git/commitdiff
Merge changes If3dd7037,Ib19bb63a
authorBenny Baumann <BenBE1987@gmx.net>
Tue, 16 Aug 2016 18:01:25 +0000 (20:01 +0200)
committerGerrit Code Review <gigi-system@dogcraft.de>
Tue, 16 Aug 2016 18:01:25 +0000 (20:01 +0200)
* changes:
  add: Highlight certificates outside validity period in Cert Overview
  add: enable that user can see all certificates issued to his account

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

index 1c503666e338547faf69a208843d1fafbdea1a06..1108aa04bf26ff2fd40b30b70fc05caba37b2cd8 100644 (file)
@@ -372,7 +372,7 @@ public final class Gigi extends HttpServlet {
         if (req.getParameter("lang") != null) {
             Locale l = Language.getLocaleFromString(req.getParameter("lang"));
             Language lu = Language.getInstance(l);
-            req.getSession().setAttribute(Language.SESSION_ATTRIB_NAME, lu.getLocale());
+            req.getSession().setAttribute(Language.SESSION_ATTRIB_NAME, lu != null ? lu.getLocale() : Locale.ENGLISH);
         }
         final Page p = getPage(req.getPathInfo());
 
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 {