It is possible that queryName() is NULL.  (Not very likely, but could be done with an inline module definition).