mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-03 14:25:37 +02:00
[395465] [dstore][shells] customer hit an NPE on shell cleanup
This commit is contained in:
parent
65dbcf2537
commit
32215e5569
1 changed files with 13 additions and 6 deletions
|
@ -37,6 +37,7 @@
|
|||
* Noriaki Takatsu (IBM) [369767] [multithread][dstore] Invalid Default directory in shell Launch
|
||||
* David McKnight (IBM) [372968] [dstore][shell] provide support for csh and tcsh shells
|
||||
* David McKnight (IBM) [395306] [dstore] Regression for CommandMinerThread authority
|
||||
* David McKnight (IBM) [395465] [dstore][shells] customer hit an NPE on shell cleanup
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.dstore.universal.miners.command;
|
||||
|
@ -1073,7 +1074,7 @@ public class CommandMinerThread extends MinerThread
|
|||
{
|
||||
|
||||
}
|
||||
if (_stdOutputHandler.isAlive() && _theProcess != null)
|
||||
if (_stdOutputHandler != null && _stdOutputHandler.isAlive() && _theProcess != null)
|
||||
{
|
||||
_theProcess.destroy();
|
||||
}
|
||||
|
@ -1120,11 +1121,17 @@ public class CommandMinerThread extends MinerThread
|
|||
_theProcess = null;
|
||||
}
|
||||
|
||||
|
||||
_stdOutputHandler.finish();
|
||||
_stdErrorHandler.finish();
|
||||
_stdInput.close();
|
||||
_stdError.close();
|
||||
if (_stdOutputHandler != null)
|
||||
_stdOutputHandler.finish();
|
||||
|
||||
if (_stdErrorHandler != null)
|
||||
_stdErrorHandler.finish();
|
||||
|
||||
if (_stdInput != null)
|
||||
_stdInput.close();
|
||||
|
||||
if (_stdError != null)
|
||||
_stdError.close();
|
||||
|
||||
_status.setAttribute(DE.A_NAME, "done"); //$NON-NLS-1$
|
||||
_dataStore.refresh(_status);
|
||||
|
|
Loading…
Add table
Reference in a new issue