// MessageDialog.openInformation(activeWindow.getShell(), "Exec command: ", command);
try {
PHPConsole console = PHPConsole.getInstance();
- console.write(consoleMessage + command + "\n");
+ if (console!=null) {
+ console.write(consoleMessage + command + "\n");
+ }
Runtime runtime = Runtime.getRuntime();
// runs the command
String consoleOutput = PHPConsole.getStringFromStream(stream);
// prints out the information
- console.write(consoleOutput);
+ if (console!=null) {
+ console.write(consoleOutput);
+ }
return consoleOutput;
} catch (IOException e) {