- (let ((indices (%tree-path-get-indices location))
- (depth (%tree-path-get-depth location)))
- (if (null-pointer-p indices)
- #()
- (map-c-vector 'vector #'identity indices 'int depth))))
+ (unless (null-pointer-p location)
+ (let ((indices (%tree-path-get-indices location))
+ (depth (%tree-path-get-depth location)))
+ (if (null-pointer-p indices)
+ #()
+ (map-c-vector 'vector #'identity indices 'int depth)))))