Skip to content

Commit 88bef0c

Browse files
committed
Add null check
1 parent ed57ac8 commit 88bef0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public List<CodeObjectInsight> getInsights(List<String> objectIds) throws Analyt
195195
}
196196

197197
private <TInsight> void onInsightReceived(List<TInsight> insights){
198-
if(!insights.isEmpty() && !SettingsState.getInstance(project).firstTimeInsightReceived) {
198+
if(insights != null && !insights.isEmpty() && !SettingsState.getInstance(project).firstTimeInsightReceived) {
199199
ActivityMonitor.getInstance(project).registerFirstInsightReceived();
200200
SettingsState.getInstance(project).firstTimeInsightReceived = true;
201201
SettingsState.getInstance(project).fireChanged();

0 commit comments

Comments
 (0)