Author: channa
Date: Thu Jul 17 22:00:30 2008
New Revision: 19445
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=19445

Log:
Checking for null and empty string. MASHUP-968.


Modified:
   
trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/utils/RegistryUtils.java

Modified: 
trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/utils/RegistryUtils.java
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/utils/RegistryUtils.java?rev=19445&r1=19444&r2=19445&view=diff
==============================================================================
--- 
trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/utils/RegistryUtils.java
  (original)
+++ 
trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/utils/RegistryUtils.java
  Thu Jul 17 22:00:30 2008
@@ -347,7 +347,8 @@
     public static User getUserProfile(String userID, Registry registry) throws 
RegistryException {
         User user = null;
 
-        if (userID != null) {
+        // Ensure that an ID has been provided before attempting to get 
profile.
+        if (userID != null && !userID.equals("")) {
             UserRegistry userRegistry = (UserRegistry) registry;
 
             String profilePath = "/users/" + userID + "/profile";

_______________________________________________
Mashup-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to