fix: Null pointer exception when textfield text is empty