Skip to content

Commit

Permalink
NPE resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikaysharma01 committed Mar 2, 2021
1 parent 6b7cb63 commit d628411
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -811,7 +811,7 @@ class SummaryProductFragment : BaseFragment(), ISummaryProductPresenter.View {
productBarcode,
productName.orEmpty(),
productDetails,
imageUrl!!
imageUrl?:""
)
addToListRecyclerView.layoutManager = LinearLayoutManager(activity)
addToListRecyclerView.adapter = addToListAdapter
Expand Down
Expand Up @@ -35,7 +35,7 @@ class ProductListAdapter(
holder.tvDetails.text = products[position].productDetails
holder.tvBarcode.text = products[position].barcode

if (!isLowBatteryMode) {
if (!isLowBatteryMode && products[position].imageUrl.isNotEmpty()) {
Picasso.get()
.load(products[position].imageUrl)
.placeholder(R.drawable.placeholder_thumb)
Expand Down

0 comments on commit d628411

Please sign in to comment.