]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/output/GroupSelector.java
fix: better error messages when invalid group value is supplied
[gigi.git] / 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