bugfix: generating dummytext w/o selection caused null pointer exception