- Fix for PHP/Linux issue with web services

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2282 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2006-02-02 11:02:51 +00:00
parent bde634ed85
commit 61b872456a
2 changed files with 10 additions and 2 deletions

View File

@@ -28,7 +28,11 @@ public class QueryLanguageEnum implements java.io.Serializable {
throws java.lang.IllegalArgumentException { throws java.lang.IllegalArgumentException {
QueryLanguageEnum enumeration = (QueryLanguageEnum) QueryLanguageEnum enumeration = (QueryLanguageEnum)
_table_.get(value); _table_.get(value);
if (enumeration==null) throw new java.lang.IllegalArgumentException(); if (enumeration==null)
{
enumeration = lucene;
//throw new java.lang.IllegalArgumentException();
}
return enumeration; return enumeration;
} }
public static QueryLanguageEnum fromString(java.lang.String value) public static QueryLanguageEnum fromString(java.lang.String value)

View File

@@ -34,7 +34,11 @@ public class StoreEnum implements java.io.Serializable {
throws java.lang.IllegalArgumentException { throws java.lang.IllegalArgumentException {
StoreEnum enumeration = (StoreEnum) StoreEnum enumeration = (StoreEnum)
_table_.get(value); _table_.get(value);
if (enumeration==null) throw new java.lang.IllegalArgumentException(); if (enumeration==null)
{
enumeration = workspace;
//throw new java.lang.IllegalArgumentException();
}
return enumeration; return enumeration;
} }
public static StoreEnum fromString(java.lang.String value) public static StoreEnum fromString(java.lang.String value)