More null pointer dereference fixes
[claws.git] / src / plugins / python / python-hooks.c
index 4cd1cb5..e4e464f 100644 (file)
@@ -275,8 +275,10 @@ parasite_python_run(const char *command,
        if (repr != NULL) {
            char *string = PyString_AsString(repr);
 
-           stdout_logger(string, user_data);
-           stdout_logger("\n", user_data);
+           if (stdout_logger != NULL) {
+               stdout_logger(string, user_data);
+               stdout_logger("\n", user_data);
+           }
         }
 
         Py_XDECREF(repr);