diff --git a/process/Loghistory_lib/process.js b/process/Loghistory_lib/process.js index 15f076f82fd94d2cd1fb67f8a186b0fb4f7a80de..59036002263ecb1d0e269fc2afc6cb7c6107e742 100644 --- a/process/Loghistory_lib/process.js +++ b/process/Loghistory_lib/process.js @@ -346,7 +346,7 @@ LogHistoryExecutor.prototype._getFormattedValue = function (pColumnName, pDescri } else if (pDescription.translate4Log != null && pDescription.translate4Log != "") { - var params = Translate4LogParams.generateParams(this.idValue, pValue.toString(), this.sqlAction, this.translationLanguage); + var params = Translate4LogParams.generateParams(this.idValue, pValue != null ? pValue.toString() : null, this.sqlAction, this.translationLanguage); var scriptId = "LogHistoryExecutor._getFormattedValue." + this.structureDefinitionAlias + "." + this.affectedTable + "." + pColumnName + ".translate4Log"; pValue = process.executeScript(scriptId, pDescription.translate4Log, params, vars.get("$sys.dbalias"));