[HepData-svn] r1830 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Tue Nov 11 10:56:25 GMT 2014


Author: whalley
Date: Tue Nov 11 10:56:25 2014
New Revision: 1830

Log:
fixing problem of null date in reference

Modified:
   trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/SavePlot.java

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/SavePlot.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/SavePlot.java	Mon Nov  3 12:28:16 2014	(r1829)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/SavePlot.java	Tue Nov 11 10:56:25 2014	(r1830)
@@ -237,7 +237,7 @@
        }
        String _refdate = "xx";
        for (Reference reference : getPaper().getReferences()){
-          _refdate = reference.getDate();
+          if(reference.getDate() != null) { _refdate = reference.getDate(); }
        } 
        int _lref = _refdate.length();
        _firstauthor = _firstauthor + " " + _refdate.substring(_lref-2,_lref);


More information about the HepData-svn mailing list