Commit 1499cc50 authored by afreyssin's avatar afreyssin

Minor changes.

parent dcf868de
......@@ -94,6 +94,7 @@ public class NamingContextFactory implements InitialContextFactory {
if (url == null)
url = (String) env.get(Context.PROVIDER_URL);
if (url != null && !url.equals("")) {
// TODO (AF): Use the URL class.
StringTokenizer tokenizer = new StringTokenizer(url, "/:,");
if (! tokenizer.hasMoreElements())
throw new NamingException("URL not valid:" + url);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment