[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Wed Feb 13 09:26:08 UTC 2008


gordonp
Wed Feb 13 04:26:08 EST 2008
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data
In directory dev.open-bio.org:/tmp/cvs-serv16589/src/main/org/biomoby/shared/data

Modified Files:
	MobyDataComposite.java 
Log Message:
Fixed null popinter on parsing composites not in the registry, now it's a MobyException, as intended
moby-live/Java/src/main/org/biomoby/shared/data MobyDataComposite.java,1.25,1.26
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataComposite.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataComposite.java	2008/02/13 09:11:05	1.25
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataComposite.java	2008/02/13 09:26:08	1.26
@@ -3,11 +3,7 @@
 
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ConcurrentMap;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.Map;
-import java.util.Set;
-import java.util.Vector;
+import java.util.*;
 
 import org.biomoby.registry.meta.Registry;
 import org.biomoby.shared.*;
@@ -40,7 +36,7 @@
     public MobyDataComposite(org.w3c.dom.Element element, Registry registry) throws MobyException{
 	this(element.getLocalName(), 
 	     getName(element), 
-	     element, 
+	     MobyPrefixResolver.getAttr(element, "namespace"), 
 	     getId(element));
 	if(getDataType() == null){
 	    throw new MobyException("Attempted to build a composite MOBY object from XML, " +




More information about the MOBY-guts mailing list