uh_cmpfun: resolved error in NULL check

uh_cmpfun: resolved error in NULL check