|
[HepData-svn] r1422 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/formatsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgMon Nov 22 14:38:42 GMT 2010
Author: whalley Date: Mon Nov 22 14:38:42 2010 New Revision: 1422 Log: make empty output fields zero instead of null Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/JhepworkFormatter.java Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/JhepworkFormatter.java ============================================================================== --- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/JhepworkFormatter.java Fri Nov 12 12:00:59 2010 (r1421) +++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/JhepworkFormatter.java Mon Nov 22 14:38:42 2010 (r1422) @@ -136,10 +136,10 @@ xup = b.getHighValue(); } Double yval = p.getValue(); - Double statdn = null; - Double statup = null; - Double systdn = null; - Double systup = null; + Double statdn = 0.0; + Double statup = 0.0; + Double systdn = 0.0; + Double systup = 0.0; int n = p.getErrors().size(); if(n > 0) { int nc = 0;
More information about the HepData-svn mailing list |