FABProgressCircle
FABProgressCircle copied to clipboard
java.lang.NullPointerException
at com.github.jorgecastilloprz.FABProgressCircle.hide(FABProgressCircle.java:166)
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
+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
As @helloray 's comment on https://github.com/JorgeCastilloPrz/FABProgressCircle/issues/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.
@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...