A breakpoint stops execution before the line its placed on. So you are trying to read an uninitialized string, and the error is expected. If you were to step forward in execution (or place the breakpoint one line later) I suspect you wouldn't encounter this error.