You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by th...@apache.org on 2008/03/19 21:13:16 UTC
svn commit: r638995 -
/labs/droids/trunk/src/core/java/org/apache/droids/helper/factories/ProtocolFactory.java
Author: thorsten
Date: Wed Mar 19 13:13:11 2008
New Revision: 638995
URL: http://svn.apache.org/viewvc?rev=638995&view=rev
Log:
if the protocolname is null we want to abort
Modified:
labs/droids/trunk/src/core/java/org/apache/droids/helper/factories/ProtocolFactory.java
Modified: labs/droids/trunk/src/core/java/org/apache/droids/helper/factories/ProtocolFactory.java
URL: http://svn.apache.org/viewvc/labs/droids/trunk/src/core/java/org/apache/droids/helper/factories/ProtocolFactory.java?rev=638995&r1=638994&r2=638995&view=diff
==============================================================================
--- labs/droids/trunk/src/core/java/org/apache/droids/helper/factories/ProtocolFactory.java (original)
+++ labs/droids/trunk/src/core/java/org/apache/droids/helper/factories/ProtocolFactory.java Wed Mar 19 13:13:11 2008
@@ -30,9 +30,9 @@
try {
url = new URL(uri);
String protocolName = url.getProtocol();
- protocol = (Protocol) getMap().get(protocolName);
if (protocolName == null)
throw new ProtocolNotFoundException(uri);
+ protocol = (Protocol) getMap().get(protocolName);
} catch (MalformedURLException e) {
throw new ProtocolNotFoundException(uri, e.toString());
} catch (ProtocolNotFoundException e) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org