mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
CVS: NPE if no CVS installed
This commit is contained in:
+12
-4
@@ -59,8 +59,12 @@ public abstract class ConnectionOnProcess implements IConnection {
|
||||
}
|
||||
|
||||
public synchronized void close() throws IOException {
|
||||
myWaitForThreadFuture.cancel(true);
|
||||
myWaitSemaphore.up();
|
||||
if (myWaitForThreadFuture != null) {
|
||||
myWaitForThreadFuture.cancel(true);
|
||||
}
|
||||
if (myWaitSemaphore != null) {
|
||||
myWaitSemaphore.up();
|
||||
}
|
||||
|
||||
try {
|
||||
if (myInputStream != null && !myContainsError) {
|
||||
@@ -84,8 +88,12 @@ public abstract class ConnectionOnProcess implements IConnection {
|
||||
|
||||
}
|
||||
try {
|
||||
myErrThread.setProcessTerminated(true);
|
||||
myStdErrFuture.get();
|
||||
if (myErrThread != null) {
|
||||
myErrThread.setProcessTerminated(true);
|
||||
}
|
||||
if (myStdErrFuture != null) {
|
||||
myStdErrFuture.get();
|
||||
}
|
||||
}
|
||||
catch (InterruptedException e) {
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user