]> WPIA git - gigi.git/commitdiff
fix: better error messages when invalid group value is supplied
authorFelix Dörre <felix@dogcraft.de>
Tue, 23 Aug 2016 19:27:28 +0000 (21:27 +0200)
committerFelix Dörre <felix@dogcraft.de>
Tue, 23 Aug 2016 19:38:07 +0000 (21:38 +0200)
Change-Id: I61f593252370de14e3c049ca15ec6fe46315bd96

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

index 850e1d5ac72272c1e2b4e577b4b60007fb326723..4452a09d1038d05475d73bbc2c2e957fc83876d8 100644 (file)
@@ -32,6 +32,9 @@ public class GroupSelector implements Outputable {
                 value = g;
             }
         }
+        if (value == null) {
+            throw new GigiApiException("Invalid value for group.");
+        }
     }
 
     @Override