[gnome-builder] lsp: check for non-empty message
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] lsp: check for non-empty message
- Date: Sat, 13 Nov 2021 17:50:44 +0000 (UTC)
commit 2c9ded391bb4704fbb9caa7c6b9d5c25d3e00e6b
Author: Christian Hergert <chergert redhat com>
Date: Sat Nov 13 09:50:24 2021 -0800
lsp: check for non-empty message
src/libide/lsp/ide-lsp-client.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/lsp/ide-lsp-client.c b/src/libide/lsp/ide-lsp-client.c
index 290f363de..aed75a2a3 100644
--- a/src/libide/lsp/ide-lsp-client.c
+++ b/src/libide/lsp/ide-lsp-client.c
@@ -899,7 +899,8 @@ ide_lsp_client_real_notification (IdeLspClient *self,
{
const gchar *message = NULL;
JSONRPC_MESSAGE_PARSE (params, "message", JSONRPC_MESSAGE_GET_STRING (&message));
- ide_object_warning (self, "%s", message);
+ if (!ide_str_empty0 (message))
+ ide_object_warning (self, "%s", message);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]