mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
prevent SIOOBE
This commit is contained in:
@@ -130,7 +130,12 @@ public class CompletionPreview {
|
||||
}
|
||||
}
|
||||
|
||||
new CompletionPreview(lookup, text, lookup.itemPattern(item));
|
||||
String prefix = lookup.itemPattern(item);
|
||||
if (prefix.length() > text.length()) {
|
||||
return;
|
||||
}
|
||||
|
||||
new CompletionPreview(lookup, text, prefix);
|
||||
}
|
||||
|
||||
public void uninstallPreview() {
|
||||
|
||||
Reference in New Issue
Block a user