GithubHelp home page GithubHelp logo

Comments (8)

exloong avatar exloong commented on September 12, 2024 4

Same error to me, happens every time when you confirm selecting the photo you just took

from tedbottompicker.

kushanshah11 avatar kushanshah11 commented on September 12, 2024 1

I have same error occurred in Samsung Galaxy S4 while i taking picture from camera.

guys can you please solve it as soon as possible?

Thanks in Advance.

from tedbottompicker.

ParkSangGwon avatar ParkSangGwon commented on September 12, 2024 1

@vinaywadhwa @ivandiazmolina @exloong @kushanshah11
That error occur by rotation.
I fix rotation error at 1.0.6 version.
Now you can use this library without NullPointerException

from tedbottompicker.

ivandiazmolina avatar ivandiazmolina commented on September 12, 2024

Same problem in library's code inside method "setupDialog". Only happened with camera

if(builder.peekHeight>0){
// ((BottomSheetBehavior) behavior).setPeekHeight(1500);
((BottomSheetBehavior) behavior).setPeekHeight(builder.peekHeight);
}

I check that "setupDialog()" call again after take photo and builder variable is null

from tedbottompicker.

ParkSangGwon avatar ParkSangGwon commented on September 12, 2024

That is little strange.
That error log told us behavior is null.
But I alway null check when use behavior.
This is source code.

  if (behavior != null && behavior instanceof BottomSheetBehavior) {
            ((BottomSheetBehavior) behavior).setBottomSheetCallback(mBottomSheetBehaviorCallback);
            if(builder.peekHeight>0){
                // ((BottomSheetBehavior) behavior).setPeekHeight(1500);
                ((BottomSheetBehavior) behavior).setPeekHeight(builder.peekHeight);
            }

        }

You can see if (behavior != null && behavior instanceof BottomSheetBehavior).
So behavior can not be null.
Hm...
Did you have always error?

from tedbottompicker.

ivandiazmolina avatar ivandiazmolina commented on September 12, 2024

Yes, but variable is null because fragment dialog is rebuilt after selecting the image

from tedbottompicker.

kushanshah11 avatar kushanshah11 commented on September 12, 2024

@ParkSangGwon can you please Look into this issue ???

anyone solved this issue please post Resolution for this issue.

Thanks in advance.

from tedbottompicker.

kushanshah11 avatar kushanshah11 commented on September 12, 2024

Hi @ParkSangGwon ,

                                                             Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=65537, result=-1, data=null} to activity {com.iotconnect/com.iotconnect.activity.DrawerActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getPath()' on a null object reference
                                                                at android.app.ActivityThread.deliverResults(ActivityThread.java:4067)
                                                                at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3389)
                                                                at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3434) 
                                                                at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2772) 
                                                                at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4471) 
                                                                at android.app.ActivityThread.access$1000(ActivityThread.java:177) 
                                                                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1455) 
                                                                at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                                at android.os.Looper.loop(Looper.java:145) 
                                                                at android.app.ActivityThread.main(ActivityThread.java:5951) 
                                                                at java.lang.reflect.Method.invoke(Native Method) 
                                                                at java.lang.reflect.Method.invoke(Method.java:372) 
                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388) 
                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183) 
                                                             Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getPath()' on a null object reference
                                                                at gun0912.tedbottompicker.TedBottomPicker.onActivityResultCamera(TedBottomPicker.java:467)
                                                                at gun0912.tedbottompicker.TedBottomPicker.onActivityResult(TedBottomPicker.java:453)
                                                                at android.support.v4.app.FragmentActivity.onActivityResult(FragmentActivity.java:164)
                                                                at android.app.Activity.dispatchActivityResult(Activity.java:6549)
                                                                at android.app.ActivityThread.deliverResults(ActivityThread.java:4063)
                                                                at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3389) 
                                                                at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3434) 
                                                                at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2772) 
                                                                at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4471) 
                                                                at android.app.ActivityThread.access$1000(ActivityThread.java:177) 
                                                                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1455) 
                                                                at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                                at android.os.Looper.loop(Looper.java:145) 
                                                                at android.app.ActivityThread.main(ActivityThread.java:5951) 
                                                                at java.lang.reflect.Method.invoke(Native Method) 
                                                                at java.lang.reflect.Method.invoke(Method.java:372) 
                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388) 
                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183) 

i m still facing same issue while i capture pic from SAMSUNG S4.

and yes i have used latest version 1.0.6

can you please Look into this issue.

Thanks in advance

from tedbottompicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.