From 77217a45bccab77d0e63c8fa38ad8d9e95917b5a Mon Sep 17 00:00:00 2001 From: mkoch Date: Tue, 19 Apr 2005 10:18:45 +0000 Subject: [PATCH] 2005-04-19 Michael Koch * 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 | 5 +++++ libjava/gnu/java/security/x509/X509Certificate.java | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) 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); } -- 2.7.4