RM-6865 adding null check

This commit is contained in:
Ross Gale
2019-06-17 14:43:39 +01:00
parent 40d01c2c44
commit b907ff04cb

View File

@@ -140,7 +140,7 @@ public class CreateRecordAction extends AuditableActionExecuterAbstractBase
if (pathParameter != null && !pathParameter.isEmpty())
{
if ((Boolean) action.getParameterValue(PARAM_ENCODED))
if (action.getParameterValue(PARAM_ENCODED) != null && (Boolean) action.getParameterValue(PARAM_ENCODED))
{
destinationRecordFolder = resolvePath(filePlan, decode(pathParameter));
}