From 8191580eafdc52dabfca2a368a930792211877b6 Mon Sep 17 00:00:00 2001 From: Maxim Shafirov Date: Tue, 8 Mar 2005 19:39:04 +0300 Subject: [PATCH] (no message) --- .../com/intellij/codeInspection/ex/InspectionProfileImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/com/intellij/codeInspection/ex/InspectionProfileImpl.java b/source/com/intellij/codeInspection/ex/InspectionProfileImpl.java index ac820541e234..bc333bf85c7c 100644 --- a/source/com/intellij/codeInspection/ex/InspectionProfileImpl.java +++ b/source/com/intellij/codeInspection/ex/InspectionProfileImpl.java @@ -568,7 +568,7 @@ public class InspectionProfileImpl implements InspectionProfile.ModifiableModel, private void copyToolsConfigurations(InspectionProfileImpl profile) { try { if (!profile.myTools.isEmpty()) { - final Project project = profile.myTools.get(0).getManager().getProject(); + final Project project = profile.myTools.values().iterator().next().getManager().getProject(); final InspectionTool[] inspectionTools = getInspectionTools(project); for (int i = 0; i < inspectionTools.length; i++) { readAndWriteToolsConfigs(inspectionTools[i], profile);