# HG changeset patch # User Max Brister # Date 1339785335 18000 # Node ID 2871d5f8d92243711cf6b48ea8aaddd12f1a1d01 # Parent 711e64a11d36db0006f561afd275eaa4a2ce5a88 Check for null index lists diff --git a/src/pt-jit.cc b/src/pt-jit.cc --- a/src/pt-jit.cc +++ b/src/pt-jit.cc @@ -1911,7 +1911,10 @@ fail ("Bad number of arguments in tree_index_expression"); tree_argument_list *arg_list = args.front (); - if (arg_list && arg_list->size () != 1) + if (! arg_list) + fail ("null argument list"); + + if (arg_list->size () != 1) fail ("Bad number of arguments in arg_list"); tree_expression *tree_object = exp.expression ();