Commit f7303881 authored by Skylot's avatar Skylot

core: fix annotations processing for method arguments

parent 1b98be0b
......@@ -42,7 +42,11 @@ public class AnnotationGen {
}
public void addForParameter(CodeWriter code, MethodParameters paramsAnnotations, int n) {
AnnotationsList aList = paramsAnnotations.getParamList().get(n);
List<AnnotationsList> paramList = paramsAnnotations.getParamList();
if (n >= paramList.size()) {
return;
}
AnnotationsList aList = paramList.get(n);
if (aList == null || aList.isEmpty()) {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment