You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2015/10/30 12:08:14 UTC
[2/4] syncope git commit: [SYNCOPE-717] Fix AjaxDoubleFieldPanel
[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/master
Commit: 381dfde35a27c1d1447ad40941ddabf4dbf9268c
Parents: d404b40
Author: Marco Di Sabatino Di Diodoro <md...@apache.org>
Authored: Fri Oct 30 10:04:42 2015 +0100
Committer: Marco Di Sabatino Di Diodoro <md...@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) {