Calling realpath() with resolved_name=NULL is implementation-defined.  I'm reasonably sure older versions of OS X segfault when it's NULL.  (Though it's possible those don't support FSEvents in the first place.)