syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmarte...@apache.org
Subject [36/50] [abbrv] syncope git commit: [SYNCOPE-717] Fix AjaxDoubleFieldPanel
Date Fri, 30 Oct 2015 11:35:15 GMT
[SYNCOPE-717] Fix AjaxDoubleFieldPanel


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/381dfde3
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/381dfde3
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/381dfde3

Branch: refs/heads/SYNCOPE-156
Commit: 381dfde35a27c1d1447ad40941ddabf4dbf9268c
Parents: d404b40
Author: Marco Di Sabatino Di Diodoro <mdisabatino@apache.org>
Authored: Fri Oct 30 10:04:42 2015 +0100
Committer: Marco Di Sabatino Di Diodoro <mdisabatino@apache.org>
Committed: Fri Oct 30 10:04:42 2015 +0100

----------------------------------------------------------------------
 .../console/wicket/markup/html/form/AjaxDoubleFieldPanel.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/381dfde3/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxDoubleFieldPanel.java
----------------------------------------------------------------------
diff --git a/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxDoubleFieldPanel.java
b/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxDoubleFieldPanel.java
index a5f8129..b548167 100644
--- a/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxDoubleFieldPanel.java
+++ b/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxDoubleFieldPanel.java
@@ -130,7 +130,7 @@ public class AjaxDoubleFieldPanel extends FieldPanel<Double> {
             public Double getObject() {
                 Double value = null;
 
-                if (list != null && !list.isEmpty()) {
+                if (list != null && !list.isEmpty() && StringUtils.isNotEmpty(list.get(0).toString()))
{
                     try {
                         value = englishDf.parse(list.get(0).toString()).doubleValue();
                     } catch (ParseException e) {


Mime
View raw message