]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/dbObjects/Certificate.java
fix: several testcases to the new configuration/structure
[gigi.git] / src / org / cacert / gigi / dbObjects / Certificate.java
index ed3d5b4a244b0bb9e28b1c9a7e5486933b0c3682..ada9ca90f2f589e6e075423c9e2e606a398aa6af 100644 (file)
@@ -221,10 +221,10 @@ public class Certificate {
 
         crtName = rs.getString(1);
         serial = rs.getString(4);
-        ca = CACertificate.getById(rs.getInt("caid"));
         if (rs.getTimestamp(2) == null) {
             return CertificateStatus.DRAFT;
         }
+        ca = CACertificate.getById(rs.getInt("caid"));
         if (rs.getTimestamp(2) != null && rs.getTimestamp(3) == null) {
             return CertificateStatus.ISSUED;
         }