mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-8129 Change Signature: exception on processing incorrect call
This commit is contained in:
+1
-1
@@ -272,7 +272,7 @@ public class PyChangeSignatureUsageProcessor implements ChangeSignatureUsageProc
|
||||
}
|
||||
|
||||
builder.append(info.getName());
|
||||
if (info.getOldIndex() != -1) {
|
||||
if (info.getOldIndex() != -1 && info.getOldIndex() < oldParameters.length) {
|
||||
final PyParameter parameter = oldParameters[info.getOldIndex()];
|
||||
if (parameter instanceof PyNamedParameter) {
|
||||
final PyAnnotation annotation = ((PyNamedParameter)parameter).getAnnotation();
|
||||
|
||||
Reference in New Issue
Block a user