core: fix annotations processing for method arguments

This commit is contained in:
Skylot
2015-02-21 16:58:54 +03:00
parent 1b98be0b0a
commit f7303881aa
@@ -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;
}