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 !
When you do
displayActivityIntent.equals(null)
, what ifdisplayActivityIntent
is indeednull
? You actually call.equals
onnull
. 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 !