6894633: NetHooks should not require provider to be present (sol)

Reviewed-by: chegar, jccollet
This commit is contained in:
Alan Bateman 2009-10-24 20:36:01 +01:00
parent 0452077b9a
commit 2c66181252

View File

@ -81,7 +81,7 @@ public final class NetHooks {
try {
c = (Class<Provider>)Class.forName(cn, true, null);
} catch (ClassNotFoundException x) {
throw new AssertionError(x);
return null;
}
try {
return c.newInstance();