[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Fri Feb 20 16:38:15 UTC 2009


gordonp
Fri Feb 20 11:38:14 EST 2009
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data
In directory dev.open-bio.org:/tmp/cvs-serv28967/src/main/org/biomoby/shared/data

Modified Files:
	MobyDataComposite.java 
Log Message:
Avoid an NPE when the varargs c-tor is called with a null namespace object
moby-live/Java/src/main/org/biomoby/shared/data MobyDataComposite.java,1.27,1.28
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataComposite.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataComposite.java	2008/09/10 19:36:44	1.27
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataComposite.java	2009/02/20 16:38:14	1.28
@@ -118,7 +118,7 @@
      * @throws MobyException if one of the values provided cannot be cast into the required type according to the DataType definition for the composite, or if a required member is missing.
      */
     public MobyDataComposite(MobyDataType type, MobyNamespace namespace, String id, Object... memberStrings) throws IllegalArgumentException, MobyException{
-	super(namespace.getName(), id);
+	super(namespace == null ? null : namespace.getName(), id);
 	
 	if(type == null){
 	    throw new IllegalArgumentException("MOBY data type given in composite object " +




More information about the MOBY-guts mailing list