aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/editor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/editor.c b/src/tools/editor.c
index 10c5c7d4..594e079a 100644
--- a/src/tools/editor.c
+++ b/src/tools/editor.c
@@ -51,6 +51,9 @@ get_message_from_editor(gchar* message, gchar** returned_message)
{
// create editor dir if not present
char* jid = connection_get_barejid();
+ if (!jid) {
+ return TRUE;
+ }
gchar* path = files_get_account_data_path(DIR_EDITOR, jid);
free(jid);
if (g_mkdir_with_parents(path, S_IRWXU) != 0) {