mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-1641 (Create Relationship Service)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@85790 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -227,7 +227,7 @@ public final class WebScriptUtils
|
||||
checkMandatoryJsonParam(jsonObject, key);
|
||||
}
|
||||
|
||||
String value;
|
||||
String value = null;
|
||||
|
||||
try
|
||||
{
|
||||
@@ -239,7 +239,10 @@ public final class WebScriptUtils
|
||||
}
|
||||
catch (JSONException error)
|
||||
{
|
||||
throw new WebScriptException(Status.STATUS_BAD_REQUEST, "Could not get value for the key '" + key + "'.", error);
|
||||
if (checkValue)
|
||||
{
|
||||
throw new WebScriptException(Status.STATUS_BAD_REQUEST, "Could not get value for the key '" + key + "'.", error);
|
||||
}
|
||||
}
|
||||
|
||||
return value;
|
||||
|
Reference in New Issue
Block a user