pki-bot / pki-issues-final

0 stars 0 forks source link

ObjectIdentifier swallows Null pointer excpetion in Constructor #143

Open pki-bot opened 3 years ago

pki-bot commented 3 years ago

This issue was migrated from Pagure Issue #143. Originally filed by admiyo on 2012-04-12 18:49:40:


netscape.security.util.ObjectIdentifier

line 52 public ObjectIdentifier(String oid) { if (oid == null) return;

The resulting ObjectIdentifer will then throw an exception on encode as the components array has not been initialized.

If passing in a null is appropriate, the OID should probably be the equivalent of "0.0.0.0" but I suspect that Null is an error, and we should just remove this check.

pki-bot commented 3 years ago

Comment from admiyo at 2017-02-27 14:11:06

Metadata Update from @admiyo: