[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Fri Feb 15 06:37:58 UTC 2008


gordonp
Fri Feb 15 01:37:58 EST 2008
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/minnow
In directory dev.open-bio.org:/tmp/cvs-serv26995/src/main/ca/ucalgary/minnow

Modified Files:
	MinJarMaker.java 
Log Message:
FindResources now checks if the resourse was null.  If so, an empty enumeration is returned (this caused a NullPointerException in Apache Commons Logging)
moby-live/Java/src/main/ca/ucalgary/minnow MinJarMaker.java,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/minnow/MinJarMaker.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/minnow/MinJarMaker.java	2008/01/30 00:41:39	1.2
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/minnow/MinJarMaker.java	2008/02/15 06:37:58	1.3
@@ -61,6 +61,8 @@
 	    System.err.println("classes in the secondary jars (an index of sorts)");
 	    System.exit( 1 );
 	}
+
+        System.err.println("log4j.configuration="+System.getProperty("log4j.configuration"));
 	
 	// Grab arguments
 	String jarfile = args[0];
@@ -198,7 +200,8 @@
     protected Enumeration<URL> findResources(String name)
 	throws IOException{
 	Vector<URL> v = new Vector<URL>(1);
-	v.add(findResource(name));
+        URL url = findResource(name);
+	if(url != null){v.add(url);}
 	return v.elements();
     }
 




More information about the MOBY-guts mailing list