Add missing null check
Change-Id: I363765d3e033dbc5e2fa9fa86137ace5f869fa46
Showing
1 changed file
with
3 additions
and
0 deletions
... | @@ -26,6 +26,9 @@ public final class FlowId { | ... | @@ -26,6 +26,9 @@ public final class FlowId { |
26 | if (this == obj) { | 26 | if (this == obj) { |
27 | return true; | 27 | return true; |
28 | } | 28 | } |
29 | + if (obj == null) { | ||
30 | + return false; | ||
31 | + } | ||
29 | if (obj.getClass() == this.getClass()) { | 32 | if (obj.getClass() == this.getClass()) { |
30 | FlowId that = (FlowId) obj; | 33 | FlowId that = (FlowId) obj; |
31 | return Objects.equal(this.flowid, that.flowid); | 34 | return Objects.equal(this.flowid, that.flowid); | ... | ... |
-
Please register or login to post a comment