diff --git a/src/main/java/io/openliberty/tools/intellij/actions/RemoveLibertyProjectAction.java b/src/main/java/io/openliberty/tools/intellij/actions/RemoveLibertyProjectAction.java index bec6e2887..c866aafa9 100644 --- a/src/main/java/io/openliberty/tools/intellij/actions/RemoveLibertyProjectAction.java +++ b/src/main/java/io/openliberty/tools/intellij/actions/RemoveLibertyProjectAction.java @@ -45,8 +45,7 @@ protected ArrayList getGradleBuildFiles(Project project) throws IOExc @Override protected void executeLibertyAction(LibertyModule libertyModule) { - Project project = libertyModule.getProject(); - String projectName = project.getName(); + String projectName = libertyModule.getName(); final int result = Messages.showYesNoDialog( LocalizedResourceUtil.getMessage("liberty.project.remove.confirmation.dialog.message", projectName), getChooseDialogTitle(),