From 05c5a8d72f8cca2c81afebb7c9813e10f04982c8 Mon Sep 17 00:00:00 2001 From: "Maxim.Mossienko" Date: Thu, 24 Jun 2010 19:46:36 +0400 Subject: [PATCH] IDEA-55965 AIOOBE in CompletionLookupArranger --- .../codeInsight/completion/CompletionLookupArranger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionLookupArranger.java b/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionLookupArranger.java index 9c9068afcb66..2f5d41ff77db 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionLookupArranger.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionLookupArranger.java @@ -126,7 +126,7 @@ public class CompletionLookupArranger extends LookupArranger { for (int i = 0; i < weight1.length; i++) { final Comparable w1 = weight1[i]; - final Comparable w2 = weight2[i]; + final Comparable w2 = i < weight2.length ? weight2[i]:null; if (w1 != null || w2 != null) { if (w1 == null) return 1; if (w2 == null) return -1;