[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Mon Jul 23 21:32:58 UTC 2007


gordonp
Mon Jul 23 17:32:58 EDT 2007
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data
In directory dev.open-bio.org:/tmp/cvs-serv17784/src/main/org/biomoby/shared/data

Modified Files:
	MobyDataString.java 
Log Message:
Allow null string in c-tor
moby-live/Java/src/main/org/biomoby/shared/data MobyDataString.java,1.6,1.7
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataString.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataString.java	2007/06/07 23:58:15	1.6
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyDataString.java	2007/07/23 21:32:58	1.7
@@ -43,7 +43,7 @@
     public MobyDataString(String articleName, CharSequence stringValue, Registry registry){
 	super(articleName);
 	setDataType(MobyDataType.getDataType(MobyTags.MOBYSTRING, registry));
-	value = new StringBuffer(stringValue.toString());
+	value = stringValue == null ? null : new StringBuffer(stringValue.toString());
     }
 
     public MobyDataString(CharSequence stringValue){




More information about the MOBY-guts mailing list