ID:144249
 
Code:
mob/characters/verb/edit_info()
usr.char_form.DisplayForm()
mob
var
Form/info/char_form = new()


Problem description:
This is alittle part of some profile editing coding. Now it seems to work most of the time, but on certain occasions this error shows:
runtime error: Cannot execute null.DisplayForm().
proc name: edit info (/mob/characters/verb/edit_info)

now I'm not sure why null is being shown for char_form b/c it isnt! heh.
mob/characters/verb/edit_info()
char_form.DisplayForm()

var
Form/info/char_form = new()


That should fix it.
In response to A.T.H.K
Is this the only way? b/c this way everytime I logout the form gets renewed since its not part of mob and doesnt save..
In response to Morf
Use Process() its an inbuilt function of htmlib.
In response to A.T.H.K
Well i already use ProcessForm() if thats what you mean....

Everything works fine .. but im pretty sure that when people log out while still having the form out, it nulls something..

I just need a way to debug at the start somehow but I have no idea what vars to look for...