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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Fri Nov 23 10:10:56 GMT 2012


Author: whalley
Date: Fri Nov 23 10:10:56 2012
New Revision: 1600

Log:
fix to bdms output for missing xbins

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

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/BdmsFormatter.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/BdmsFormatter.java	Fri Nov 23 10:08:54 2012	(r1599)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/BdmsFormatter.java	Fri Nov 23 10:10:56 2012	(r1600)
@@ -208,7 +208,9 @@
                             }
                         }
                         } catch(Exception e){
-                           s.append(" " + ds.getXAxis(nx+1).getBin(i+1).getDescription());
+                           if( ds.getXAxis(nx+1).getBin(i+1) != null){
+                               s.append(" " + ds.getXAxis(nx+1).getBin(i+1).getDescription());
+                          }
                         }
                         s.append(";");                   
                     }


More information about the HepData-svn mailing list