OSDN Git Service

2005-04-19 Michael Koch <konqueror@gmx.de>
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Apr 2005 10:18:45 +0000 (10:18 +0000)
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Apr 2005 10:18:45 +0000 (10:18 +0000)
* gnu/java/security/x509/X509Certificate.java
(parse): Handle val == null case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98397 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/gnu/java/security/x509/X509Certificate.java

index 7b78f97..6ab56c5 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-19  Michael Koch  <konqueror@gmx.de>
+
+       * gnu/java/security/x509/X509Certificate.java
+       (parse): Handle val == null case.
+
 2005-04-19  Roman Kennke  <roman@kennke.org>
 
        * javax/swing/plaf/metal/MetalLookAndFeel.java
index 29606d1..5d8f1d9 100644 (file)
@@ -622,10 +622,9 @@ public class X509Certificate extends java.security.cert.X509Certificate
         else
           {
             algVal = val.getEncoded();
-          }
-        if (val.isConstructed())
-          {
-            encoded.skip(val.getLength());
+           
+           if (val.isConstructed())
+             encoded.skip(val.getLength());
           }
         debug("read algorithm parameters == " + algVal);
       }