title: I got error in java.lang.NumberFormatException: For input string: "null"
body: <p>i have error in edit cart item in my app.the error is : <code>java.lang.NumberFormatException: For input string: "null"</code>.i thing error line  <code>interget.parseInt("" + v.getTag());</code></p>
  
  <p>my code :</p>
  
  <pre><code>case R.id.iv_edit_cart_item:
                      FragmentManager fm=getActivity().getSupportFragmentManager();
                      Fragment fragment = new ProductDetailActivity();
                      Bundle bundle = new Bundle();
                      int updatePos = Integer.parseInt("" + v.getTag());
                      bundle.putString("key","update");
                      bundle.putString("product_id", mArrListMyCart.get(updatePos).getmStrProductId());
                      bundle.putString("item_id", mArrListMyCart.get(updatePos).getmStrItemId());
  
                      getUpdateCartItems();
                      //showAlert("Product id--&gt;" + mArrListMyCart.get(Integer.parseInt(""+v.getTag())).getmStrProductId(), -1);
                      fragment.setArguments(bundle);
                      fm.beginTransaction().replace(R.id.content_frame, fragment).addToBackStack("").commit();
                      break;
  </code></pre>
  
  <p>How to solve this?</p>