[Yanel-commits] rev 31662 - public/yanel/trunk/src/contributions/resources/yanel-user/src/java/org/wyona/yanel/impl/resources

michi at wyona.com michi at wyona.com
Mon Feb 11 23:06:01 CET 2008


Author: michi
Date: 2008-02-11 23:06:00 +0100 (Mon, 11 Feb 2008)
New Revision: 31662

Modified:
   public/yanel/trunk/src/contributions/resources/yanel-user/src/java/org/wyona/yanel/impl/resources/YanelUserResource.java
Log:
check on the suggested name

Modified: public/yanel/trunk/src/contributions/resources/yanel-user/src/java/org/wyona/yanel/impl/resources/YanelUserResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/yanel-user/src/java/org/wyona/yanel/impl/resources/YanelUserResource.java	2008-02-11 21:23:31 UTC (rev 31661)
+++ public/yanel/trunk/src/contributions/resources/yanel-user/src/java/org/wyona/yanel/impl/resources/YanelUserResource.java	2008-02-11 22:06:00 UTC (rev 31662)
@@ -282,8 +282,15 @@
         return map;
     }
 
+    /**
+     * If the suggested name is an empty string, then return null such that the resource creator will not create a resource configuration
+     */
     public String getCreateName(String suggestedName) {
-        return suggestedName;
+        if (suggestedName != null && suggestedName.equals("")) {
+            return null;
+        } else {
+            return suggestedName;
+        }
     }
 
     /**



More information about the Yanel-commits mailing list