[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Tue Jun 9 19:02:20 UTC 2009


gordonp
Tue Jun  9 15:02:20 EDT 2009
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/test
In directory dev.open-bio.org:/tmp/cvs-serv19866/src/main/org/biomoby/service/test

Modified Files:
	TestServletConfig.java 
Log Message:
Added placeholdername/className in case given URL is null
moby-live/Java/src/main/org/biomoby/service/test TestServletConfig.java,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/test/TestServletConfig.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/test/TestServletConfig.java	2007/03/12 16:57:30	1.2
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/test/TestServletConfig.java	2009/06/09 19:02:20	1.3
@@ -31,6 +31,12 @@
     public TestServletConfig(ServletContext cont, java.net.URL u) throws Exception{
 	context = cont;
 
+	if(u == null){
+	    name = "placeholderName";
+	    className = "placeholderClassName";
+	    return;
+	}
+
 	DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
 	dbf.setNamespaceAware(true);	
 	DocumentBuilder docBuilder = dbf.newDocumentBuilder();




More information about the MOBY-guts mailing list