Skip to content

Commit

Permalink
Added null check
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Feb 27, 2014
1 parent bc8ebb9 commit e94f9e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static NavigationResultBuilder create()
public static NavigationResultBuilder create(NavigationResult result)
{
NavigationResultBuilder builder = new NavigationResultBuilder();
if (result != null)
if (result != null && result.getNext() != null)
{
builder.entries.addAll(Arrays.asList(result.getNext()));
}
Expand Down

0 comments on commit e94f9e7

Please sign in to comment.