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

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'float java.lang.Float.floatValue()' on a null object reference #5

Open
alexspyr opened this issue Feb 25, 2017 · 0 comments

Comments

@alexspyr
Copy link

Hey, I got some crashes from the same error on Fabric.
Full crash message:
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'float java.lang.Float.floatValue()' on a null object reference at octappush.com.octappush.signup.SignupTutorial.setViewsInOriginalPosition(SignupTutorial.java:278) at octappush.com.octappush.signup.SignupTutorial.access$700(SignupTutorial.java:83) at octappush.com.octappush.signup.SignupTutorial$1.onPageSelected(SignupTutorial.java:229) at android.support.v4.view.ViewPager.dispatchOnPageSelected(ViewPager.java:1967) at android.support.v4.view.ViewPager.scrollToItem(ViewPager.java:685) at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:669) at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:630) at android.support.v4.view.ViewPager.setCurrentItem(ViewPager.java:622) at android.support.v4.view.ViewPager.pageLeft(ViewPager.java:2899) at android.support.v4.view.ViewPager.arrowScroll(ViewPager.java:2860) at android.support.v4.view.ViewPager.executeKeyEvent(ViewPager.java:2777) at android.support.v4.view.ViewPager.dispatchKeyEvent(ViewPager.java:2761) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1495) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1495) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1495) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1495) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1495) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1495) at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchKeyEvent(PhoneWindow.java:2361) at com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:1709) at android.app.Activity.dispatchKeyEvent(Activity.java:2702) at android.support.v7.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:547) at android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:59) at android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.dispatchKeyEvent(AppCompatDelegateImplBase.java:319) at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:2276) at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4020) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3982) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3680) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3737) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3713) at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:3874) at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:2208) at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:1849) at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:1840) at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:2185) at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:141) at android.os.MessageQueue.nativePollOnce(MessageQueue.java) at android.os.MessageQueue.next(MessageQueue.java:143) at android.os.Looper.loop(Looper.java:122) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Method.java) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

Code that ther crash is pointing at: it's the first line of this function

` private void setViewsInOriginalPosition() {

    mCenterBox.setX(mOriginalXValuesMap.get(mCenterBox));
    mCamcordImage.setX(mOriginalXValuesMap.get(mCamcordImage));
    mClockImage.setX(mOriginalXValuesMap.get(mClockImage));
    mGraphImage.setX(mOriginalXValuesMap.get(mGraphImage));
    mAudioImage.setX(mOriginalXValuesMap.get(mAudioImage));
    mQuoteImage.setX(mOriginalXValuesMap.get(mQuoteImage));
    mMapImage.setX(mOriginalXValuesMap.get(mMapImage));
    mWordPressImage.setX(mOriginalXValuesMap.get(mWordPressImage));

    initializeAlpha();

}`

If you could help me understand what's up, I would be grateful.

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

1 participant