Author: ross.gardler
Date: Wed Sep 17 14:49:49 2008
New Revision: 1322

Modified:
     
trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/data/SortableFoafResourceDataProvider.java

Log:
Not throwing SimalRepositoryException from getAddress()

Modified:  
trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/data/SortableFoafResourceDataProvider.java
==============================================================================
---  
trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/data/SortableFoafResourceDataProvider.java
      
(original)
+++  
trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/data/SortableFoafResourceDataProvider.java
      
Wed Sep 17 14:49:49 2008
@@ -161,16 +161,10 @@
            && resource1 instanceof IPerson && resource2 instanceof IPerson)  
{
          String email1;
          String email2;
-        try {
-          Set<IInternetAddress> internetAdd = ((IPerson)  
resource1).getEmail();
-          email1 = ((IInternetAddress)  
internetAdd.toArray()[0]).getAddress();
-          internetAdd = ((IPerson) resource2).getEmail();
-          email2 = ((IInternetAddress)  
internetAdd.toArray()[0]).getAddress();
-        } catch (SimalRepositoryException e) {
-          logger.warn("Unable to retrieive email address from repo");
-          email1 = "Error";
-          email2 = "Error";
-        }
+        Set<IInternetAddress> internetAdd = ((IPerson)  
resource1).getEmail();
+        email1 = ((IInternetAddress)  
internetAdd.toArray()[0]).getAddress();
+        internetAdd = ((IPerson) resource2).getEmail();
+        email2 = ((IInternetAddress)  
internetAdd.toArray()[0]).getAddress();
          if (email1 == null) {
            result = 1;
          } else if (email2 == null) {

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Simal Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/simal-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to