fixed NPE when try to search local var or parameter