Suggestions for what might throw this error?

I am doing a 'clean' play through i.e. no new scripts or mechanics introduced since starting the game. I have entered a map, left it for a side map and now want to re-enter the first map. Doing so causes this error message:

'Game_Interpreter' line 450: NoMethodError occurred.

undefined method 'x' for nil:NilClass

Could someone tell me what sort of script it is trying to interpret so that I can begin to do something about it? It's a very strange error, because I have been in and out of this map on previous play throughs with no problem. Also, if I start a New Game here I can do it without this error message occurring, so I am at a loss. Thank you.
There's an event with a conditional branch trying to call a script.

Edit:

If you add this script, you should see the event information on the console when it crashes (Be sure to check the console before clicking OK on the error message):

Code:
class Game_Interpreter  alias :hudell_debug_command_111 :command_111  def command_111    begin      hudell_debug_command_111    rescue      if @params[0] == 12        print "----\n"        print "map-id: " + @map_id.to_s + "\n"        print "event-id: " + @event_id.to_s + "\n"        print "script: " + @params[1] + "\n";      end    end  endend
Thanks, that probably gives me enough to track it down.

EDIT

Found it.

Thanks very much.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/suggestions-for-what-might-throw-this-error.40117/