Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix notifications without message #3794

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

mueller-ma
Copy link
Member

I personally use only the title for most notifications, so I discovered a crash when using the following code to create a notification:

actions.notificationBuilder()
.withTitle("foo")
.send();

There's no message passed to notificationBuilder(). In this case, handle it like an empty string as message.

I personally use only the title for most notifications, so I discovered
a crash when using the following code to create a notification:

```js
actions.notificationBuilder()
.withTitle("foo")
.send();
```

There's no message passed to `notificationBuilder()`. In this case,
handle it like an empty string as message.

Signed-off-by: mueller-ma <[email protected]>
@mueller-ma mueller-ma merged commit 4868e79 into openhab:main Aug 7, 2024
8 checks passed
@mueller-ma mueller-ma deleted the notification-no-message branch August 7, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants