timozattol / project-radin

Project Radin is an expense management Android application that was build during EPFL's Software Engineering 2014 course.
2 stars 2 forks source link

NullPointerException could occur in ActionBar #44

Closed philemonf closed 10 years ago

philemonf commented 10 years ago

When you do displayActivityIntent.equals(null), what if displayActivityIntent is indeed null ? You actually call .equals on null. This would throw a runtime exception (NullPointerException)... displayActivityIntent == null would solve the problem :+1:

If you correct it with regression tests, it would be awesome !

timozattol commented 10 years ago

J'ai pas vu de régression test bonhomme :P