aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/java
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2005-04-19 10:18:45 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2005-04-19 10:18:45 +0000
commitfd6032914064dd701cf3a044682802ef36ed18d6 (patch)
tree9f84fe54bd580999f2267358b07a42de7a46067f /libjava/gnu/java
parent2330df3bed9c50b1b46030cf674006a9ac8bb955 (diff)
downloadgcc-fd6032914064dd701cf3a044682802ef36ed18d6.zip
gcc-fd6032914064dd701cf3a044682802ef36ed18d6.tar.gz
gcc-fd6032914064dd701cf3a044682802ef36ed18d6.tar.bz2
2005-04-19 Michael Koch <konqueror@gmx.de>
* gnu/java/security/x509/X509Certificate.java (parse): Handle val == null case. From-SVN: r98397
Diffstat (limited to 'libjava/gnu/java')
-rw-r--r--libjava/gnu/java/security/x509/X509Certificate.java7
1 files changed, 3 insertions, 4 deletions
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);
}