title: Getting java null pointer exception on cropImageView.setImageBitmap(bitmap);
body: <p>mcrop.setOnClickListener(new View.OnClickListener() {</p>
  
  <pre><code>@Override
  public void onClick(View v) {
  
      preview.buildDrawingCache();
      bitmap=preview.getDrawingCache();
      CropImage.activity(uri)
              .start(Previewimage.this);
      cropImageView.setImageBitmap(bitmap);
      Bitmap cropped = cropImageView.getCroppedImage();
      preview.setImageBitmap(cropped);
  </code></pre>
  
  <p>}
  };</p>
  
  <p>java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.Bitmap com.theartofdev.edmodo.cropper.CropImageView.getCroppedImage()' on a null object reference</p>