debug NULL string and GUI