syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject svn commit: r1441341 - /syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/RoleDetailsPanel.java
Date Fri, 01 Feb 2013 08:41:20 GMT
Author: ilgrosso
Date: Fri Feb  1 08:41:20 2013
New Revision: 1441341

URL: http://svn.apache.org/viewvc?rev=1441341&view=rev
Log:
More robust handling of Long -> long conversion

Modified:
    syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/RoleDetailsPanel.java

Modified: syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/RoleDetailsPanel.java
URL: http://svn.apache.org/viewvc/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/RoleDetailsPanel.java?rev=1441341&r1=1441340&r2=1441341&view=diff
==============================================================================
--- syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/RoleDetailsPanel.java
(original)
+++ syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/RoleDetailsPanel.java
Fri Feb  1 08:41:20 2013
@@ -331,7 +331,9 @@ public class RoleDetailsPanel extends Pa
 
         @Override
         public void setObject(final Object object) {
-            roleTO.setParent((Long) object);
+            long parentId = (object instanceof Long)
+                    ? ((Long) object).longValue() : 0;
+            roleTO.setParent(parentId);
         }
 
         @Override



Mime
View raw message