We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42c007e commit 7f90b86Copy full SHA for 7f90b86
src/omega/PythonInterpreter.cpp
@@ -92,7 +92,11 @@ class PythonInteractiveThread: public Thread
92
if(mccTarget == "") prompt = ostr("%1%>>", %sys->getApplication()->getName());
93
else prompt = ostr("@%1%>>", %mccTarget);
94
char *inp_c = readline(prompt.c_str()); //Instead of getline()
95
-
+ if(inp_c == NULL)
96
+ {
97
+ oerror("[PythonInteractiveThread] readline returned NULL");
98
+ break;
99
+ }
100
// THE COMMAND OF DEATH
101
if(inp_c[0] == 'D' &&
102
inp_c[1] == 'I' &&
0 commit comments