mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-55965 AIOOBE in CompletionLookupArranger
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user