question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add null checks for baseOptions

See original GitHub issue

Some backends doesn’t return baseOptions array in the entries.product for the cart endpoint response which cause errors. Let’s add some checks to avoid that in the below components (search the project for baseOptions[):

  • cart item
  • amend order items
  • wish list item

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bgambocjaviniarcommented, Feb 11, 2020

QA: steps

  • go to apparel-uk-spa
  • add non baseOption product like 45572
  • add baseOption product like 300613173

verify no console errors in wishlist, order/return, cart

0reactions
mirkosoftcommented, Feb 11, 2020

Not sure how to set up backend like that but you need to have product occ response WITHOUT baseOptions array in it. And than check the console for errors in places listed in the description.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add null checks for all (parameters) - Visual Studio (Windows)
Learn how to create and add if statements to your code that check nullity of all the nullable, non-checked parameters.
Read more >
Fody/NullGuard: Adds null argument checks to an assembly
This only applies to normal arguments, and the incoming value of a ref argument.
Read more >
Generate null-checking routines - JetBrains Rider
Depending on their purpose, null-checking routines can be divided into two ... Alt+Insert | Constructor), select Check parameters for null in the dialog....
Read more >
dio | Dart Package - Pub.dev
A powerful Http client for Dart, which supports Interceptors, FormData, Request Cancellation, File Downloading, Timeout etc.
Read more >
ef core not null
10-Oct-2021 In some cases, a database column is nullable even when the property is marked as ... [Categories] ADD CONSTRAINT [CK_description_NOTNULL] CHECK ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found