Skip to content

Commit 6efbdf5

Browse files
committed
documentation parent disposable
1 parent 6469ee0 commit 6efbdf5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ide-common/src/main/java/org/digma/intellij/plugin/analytics/AnalyticsService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public class AnalyticsService implements Disposable {
5959

6060
private static final Logger LOGGER = Logger.getInstance(AnalyticsService.class);
6161

62-
private final Environment environment;
62+
private Environment environment;
6363

6464
private final Project project;
6565

@@ -522,6 +522,8 @@ public HttpResponse lowLevelCall(HttpRequest request) throws AnalyticsServiceExc
522522
public void dispose() {
523523
try {
524524
analyticsProviderProxy.close();
525+
analyticsProviderProxy = null;
526+
environment = null;
525527
} catch (Exception e) {
526528
Log.warnWithException(LOGGER, project, e, "exception while closing AnalyticsProvider {}", e.getMessage());
527529
}

0 commit comments

Comments
 (0)