Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NullPointerException #24

Open
Mygod opened this issue Jan 2, 2016 · 4 comments
Open

java.lang.NullPointerException #24

Mygod opened this issue Jan 2, 2016 · 4 comments

Comments

@Mygod
Copy link

Mygod commented Jan 2, 2016

at com.github.jorgecastilloprz.FABProgressCircle.hide(FABProgressCircle.java:166)

@mrThinBone
Copy link

I face this problem
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.github.jorgecastilloprz.progressarc.ProgressArcView.requestCompleteAnimation()' on a null object reference

@amjedab
Copy link

amjedab commented Aug 29, 2016

+1 NPE on
Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'void com.github.jorgecastilloprz.progressarc.ProgressArcView.stop()' on a null object reference

@Abushawish
Copy link

As @helloray 's comment on #29 shows:

After checking the library source code, addArcView() is called by onMeasure() method. As a result of that, you should not use the show function until the activity is completely shown. A good place to call show() is in onWindowFocusChanged(hasFocus == true) function .

@OverRide public void onWindowFocusChanged(boolean hasFocus) {

if (hasFocus == true)
fabProgressCircle.show();
}

You should not use the show() function in OnCreate, OnResume, OnStart.

@ramack
Copy link

ramack commented Oct 28, 2019

@JorgeCastilloPrz this causes us quite some trouble, do you plan to publish an update of you wonderful library some time? - It would be really great and I think it would be worth it if we see the number of stars here on the repo...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants