ASE-Projekte-WS-2021 / ase-ws-21-unser-horsaal

ase-ws-21-unser-horsaal created by GitHub Classroom
2 stars 0 forks source link

Removed trim() from LoginViewModel and RegistrationViewModel #240

Closed vairasza closed 2 years ago

vairasza commented 2 years ago

using trim before checking the email input might lead to null pointer exception using trim after checking email pattern is not needed as the pattern matcher would throw an error -> completly removed trim

modified: app/src/main/java/com/example/unserhoersaal/viewmodel/LoginViewModel.java modified: app/src/main/java/com/example/unserhoersaal/viewmodel/RegistrationViewModel.java