Skip to content

Instantly share code, notes, and snippets.

@agustarc
Created February 5, 2017 08:33
Show Gist options
  • Save agustarc/817b26151bc70efc3bd79cd42f73bb54 to your computer and use it in GitHub Desktop.
Save agustarc/817b26151bc70efc3bd79cd42f73bb54 to your computer and use it in GitHub Desktop.
Cart cart = response.getCart();
if (cart != null) {
Product product = cart.getProduct();
if (product != null) {
System.out.println(product.getName());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment