gordon-cs / Project-Phoenix

The Electronic Room Condition Inventory
0 stars 0 forks source link

Avoid returning nulls inside services #167

Closed eanyanwu closed 7 years ago

eanyanwu commented 7 years ago

This pull request is mainly for @superpowers11 but @fallcat, you can review it too if you would like πŸ‘

154

πŸŽ‰ One more month before this gets fully used πŸŽ‰

As usual please don't be intimidated by the GitHub-produced diffs. They exaggerate the amount of changes I made.

This pull request focuses on removing the return null expressions from the LoginService. I replace them with throwing Exceptions.
I think this is a good idea because:

Testing: