myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1746442 - /myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIProgress.java
Date Wed, 01 Jun 2016 12:12:58 GMT
Author: lofwyr
Date: Wed Jun  1 12:12:58 2016
New Revision: 1746442

URL: http://svn.apache.org/viewvc?rev=1746442&view=rev
Log:
TOBAGO-1545: Adapt the tc:progress to Bootstrap
fix Exception by "null" value

Modified:
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIProgress.java

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIProgress.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIProgress.java?rev=1746442&r1=1746441&r2=1746442&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIProgress.java
(original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIProgress.java
Wed Jun  1 12:12:58 2016
@@ -64,7 +64,7 @@ public abstract class AbstractUIProgress
       } else {
         if (model instanceof Number) {
           rangeValue = ((Number) model).doubleValue();
-        } else {
+        } else if (model != null) {
           rangeValue = Double.parseDouble("" + model);
         }
         if (getMax() != null) {



Mime
View raw message