diff --git a/components/gitpod-db/src/typeorm/transformer.ts b/components/gitpod-db/src/typeorm/transformer.ts index 68a74d3cb98b63..7aa22ae9c4db44 100644 --- a/components/gitpod-db/src/typeorm/transformer.ts +++ b/components/gitpod-db/src/typeorm/transformer.ts @@ -11,7 +11,7 @@ import { EncryptionService } from "@gitpod/gitpod-protocol/lib/encryption/encryp export namespace Transformer { export const MAP_EMPTY_STR_TO_UNDEFINED: ValueTransformer = { to(value: any): any { - if (value === undefined) { + if (value === undefined || value === null) { return ''; } return value;