Null exception fix

Provided argument may be null, so we can't guarantee @NotNull if we return it. And parent contract allows us to return null.
This commit is contained in:
Ilya.Kazakevich
2016-04-15 23:39:29 +03:00
parent a40616faae
commit 33e5bd192e
@@ -19,7 +19,6 @@ import com.jetbrains.python.psi.*;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
@@ -37,7 +36,7 @@ public class PyAnyExpressionEvaluator extends PyEvaluator {
myEvalSequence = evalSequence;
}
@NotNull
@Nullable
@Override
public Object evaluate(final PyExpression expr) {
final Object evaluate = super.evaluate(expr);