diff --git a/find/parser.c b/find/parser.c
index a707546..799c42d 100644
--- a/find/parser.c
+++ b/find/parser.c
@@ -1309,6 +1309,9 @@ parse_newerXY (const struct parser_table* entry, char **argv, int *arg_ptr)
        {
          struct predicate *our_pred;
          
+         if (argv[(*arg_ptr)+1] == NULL)
+           error(1, 0, _("The `%s' test needs an argument"), argv[*arg_ptr]);
+
          /* Because this item is ARG_SPECIAL_PARSE, we have to advance arg_ptr
           * past the test name (for most other tests, this is already done)
           */
