diff --git a/src/main/java/org/jboss/tools/intellij/openshift/tree/application/ApplicationsRootNode.java b/src/main/java/org/jboss/tools/intellij/openshift/tree/application/ApplicationsRootNode.java index 7ed0f3c9d..3448d6313 100644 --- a/src/main/java/org/jboss/tools/intellij/openshift/tree/application/ApplicationsRootNode.java +++ b/src/main/java/org/jboss/tools/intellij/openshift/tree/application/ApplicationsRootNode.java @@ -163,8 +163,14 @@ private void restoreComponentFeatureProcesses(Odo odo) { } @Override - public void moduleAdded(@NotNull Project project, @NotNull Module module) { - addContext(getOdo().getNow(null), ProjectUtils.getModuleRoot(module)); + public void modulesAdded(@NotNull Project project, @NotNull List modules) { + Odo odo = getOdo().getNow(null); + if (odo == null) { + return; + } + modules.forEach(module -> + addContext(odo, ProjectUtils.getModuleRoot(module)) + ); } @Override