igreenwood / SimpleCropView

A simple image cropping library for Android.
MIT License
2.48k stars 465 forks source link

Loading Uri to CropImageView throws Exception #126

Open akinsete opened 6 years ago

akinsete commented 6 years ago

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toLowerCase()'

 cropImageView.load(Uri.parse(sourceUri)).execute(new LoadCallback() {
        @Override
        public void onError(Throwable e) {
            Log.e("::xxx::",e.toString());
            e.printStackTrace();
        }

        @Override
        public void onSuccess() {
        }
});
waelalameen commented 6 years ago

Me too, Did you got a solution ??

TopTime1 commented 6 years ago

Me too, Did you got a solution ??

VivekThummar52 commented 3 years ago

Have a look at this answer, it also worked for me:

https://github.com/igreenwood/SimpleCropView/issues/68#issuecomment-228911888