Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle case where AST name has no location
In cases where an IASTName has no image location we were getting NPEs in this code. See javadoc for getImageLocation for cases when image location can be null. See #251's description for a full case of when this can happen. All other calls to IASTName.getImageLocation in CDT were also checked and this was the only place in the code where the return value was not checked for null. Fixes #251
- Loading branch information