From: Michael Koch Date: Tue, 19 Apr 2005 10:18:45 +0000 (+0000) Subject: 2005-04-19 Michael Koch X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd6032914064dd701cf3a044682802ef36ed18d6;p=platform%2Fupstream%2Fgcc.git 2005-04-19 Michael Koch * gnu/java/security/x509/X509Certificate.java (parse): Handle val == null case. From-SVN: r98397 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 7b78f97..6ab56c5 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2005-04-19 Michael Koch + + * gnu/java/security/x509/X509Certificate.java + (parse): Handle val == null case. + 2005-04-19 Roman Kennke * javax/swing/plaf/metal/MetalLookAndFeel.java diff --git a/libjava/gnu/java/security/x509/X509Certificate.java b/libjava/gnu/java/security/x509/X509Certificate.java index 29606d1..5d8f1d9 100644 --- a/libjava/gnu/java/security/x509/X509Certificate.java +++ b/libjava/gnu/java/security/x509/X509Certificate.java @@ -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); }