Function input can be null
Change-Id: I9e9276f57c6c055935ed416c8ce197c24d2cfcc5
Showing
1 changed file
with
5 additions
and
1 deletions
| ... | @@ -518,7 +518,11 @@ public class GossipLinkStore | ... | @@ -518,7 +518,11 @@ public class GossipLinkStore |
| 518 | private final class LookupLink implements Function<LinkKey, Link> { | 518 | private final class LookupLink implements Function<LinkKey, Link> { |
| 519 | @Override | 519 | @Override |
| 520 | public Link apply(LinkKey input) { | 520 | public Link apply(LinkKey input) { |
| 521 | - return links.get(input); | 521 | + if (input == null) { |
| 522 | + return null; | ||
| 523 | + } else { | ||
| 524 | + return links.get(input); | ||
| 525 | + } | ||
| 522 | } | 526 | } |
| 523 | } | 527 | } |
| 524 | 528 | ... | ... |
-
Please register or login to post a comment