fix(decorators): fixes decorator reflection.

The bug appears when there are only type annotations without parameter
annotations.
This commit is contained in:
Rado Kirov
2015-05-06 10:06:30 -07:00
parent 169e4e862d
commit be7504d451
2 changed files with 38 additions and 13 deletions
@@ -56,7 +56,7 @@ export class ReflectionCapabilities {
} else {
result[i] = [];
}
if (isPresent(paramAnnotations[i])) {
if (isPresent(paramAnnotations) && isPresent(paramAnnotations[i])) {
result[i] = result[i].concat(paramAnnotations[i]);
}
}