[HepData-svn] r1798 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Fri May 9 10:43:39 BST 2014


Author: whalley
Date: Fri May  9 10:43:39 2014
New Revision: 1798

Log:
Fix for missing columns in qualifier fields

Modified:
   trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/InputFormatter.java

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/InputFormatter.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/InputFormatter.java	Wed May  7 15:30:42 2014	(r1797)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/InputFormatter.java	Fri May  9 10:43:39 2014	(r1798)
@@ -126,7 +126,8 @@
 	        		if(comm.contains(":")){
 			            StringBuffer tempbuff = new StringBuffer();
 			            String left = comm.split("\\s*:\\s*")[0];
-			            String right = comm.split("\\s*:\\s*")[1];
+                        String right=" ";
+                        if(comm.split("\\s*:\\s*").length>1){ right = comm.split("\\s*:\\s*")[1];  } 
 			            tempbuff.append("*qual: " + left + " : " + right);
 			            storelist.add(tempbuff.toString());
 			       } else{


More information about the HepData-svn mailing list