Android Lint: Fix constant evaluation in annotation parameter

#KT-17785 Fixed Target Versions 1.1.5
This commit is contained in:
Vyacheslav Gerasimov
2017-08-22 14:33:12 +03:00
parent 2e1edaf3d4
commit aedb4c0ade
6 changed files with 89 additions and 7 deletions
@@ -862,7 +862,7 @@ public class ConstantEvaluator {
}
}
return operandValue;
} else if (node instanceof UReferenceExpression) {
} else if (mContext != null && node instanceof UReferenceExpression) {
PsiElement resolved = ((UReferenceExpression) node).resolve();
if (resolved instanceof PsiVariable) {
PsiVariable variable = (PsiVariable) resolved;