Skip to content

Commit 754fbae

Browse files
author
Mislav Stanić
committed
SHK-4494: Null check for insert notification method
1 parent eba0f4c commit 754fbae

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/builders/NotificationEventBuilder.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ class NotificationEventBuilder {
3030

3131
setId(value) {
3232
this._id = value;
33+
if (!this._id) {
34+
this._id = '';
35+
}
3336
return this;
3437
}
3538

@@ -39,6 +42,9 @@ class NotificationEventBuilder {
3942

4043
setTitle(value) {
4144
this._title = value;
45+
if (!this._title) {
46+
this._title = '';
47+
}
4248
return this;
4349
}
4450

@@ -48,6 +54,9 @@ class NotificationEventBuilder {
4854

4955
setDescription(value) {
5056
this._description = value;
57+
if (!this._description) {
58+
this._description = '';
59+
}
5160
return this;
5261
}
5362

0 commit comments

Comments
 (0)