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.
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.