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

ava.lang.NullPointerException Attempt to invoke virtual method 'int android.view.View.getId()' on a null object reference #21149

Closed
3 tasks done
DanGDroid opened this issue Sep 17, 2018 · 3 comments
Labels
Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@DanGDroid
Copy link

DanGDroid commented Sep 17, 2018

Environment

Environment:
OS: macOS High Sierra 10.13.6
Node: 10.7.0
Yarn: 1.9.4
npm: 6.1.0
Watchman: 4.7.0
Xcode: Xcode 9.4.1 Build version 9F2000
Android Studio: 3.1 AI-173.4670197

Packages: (wanted => installed)
react: 16.4.1 => 16.4.1
react-native: 0.56.0 => 0.56.0

Description

as in #10845 that was labeled as resolved this bug still happens.
related:
#20288
#17178

common crash Yuval java.lang.NullPointerException Attempt to invoke virtual method 'int android.view.View.getId()' on a null object reference NativeViewHierarchyManager.java:537 com.facebook.react.uimanager.NativeViewHierarchyManager.dropView NativeViewHierarchyManager.java:431 com.facebook.react.uimanager.NativeViewHierarchyManager.manageChildren UIViewOperationQueue.java:180 com.facebook.react.uimanager.UIViewOperationQueue$ManageChildrenOperation.execute UIViewOperationQueue.java:819 com.facebook.react.uimanager.UIViewOperationQueue$1.run UIViewOperationQueue.java:926 com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches UIViewOperationQueue.java:47 com.facebook.react.uimanager.UIViewOperationQueue.access$2100 UIViewOperationQueue.java:986 com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded GuardedFrameCallback.java:31 com.facebook.react.uimanager.GuardedFrameCallback.doFrame ReactChoreographer.java:136 com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame ChoreographerCompat.java:107 com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame Choreographer.java:979 android.view.Choreographer$CallbackRecord.run Choreographer.java:790 android.view.Choreographer.doCallbacks Choreographer.java:718 android.view.Choreographer.doFrame Choreographer.java:967 android.view.Choreographer$FrameDisplayEventReceiver.run Handler.java:808 android.os.Handler.handleCallback Handler.java:101 android.os.Handler.dispatchMessage Looper.java:166 android.os.Looper.loop ActivityThread.java:7425 android.app.ActivityThread.main Method.java:-2 java.lang.reflect.Method.invoke Zygote.java:245 com.android.internal.os.Zygote$MethodAndArgsCaller.run ZygoteInit.java:921 com.android.internal.os.ZygoteInit.main

Reproducible Demo

Let us know how to reproduce the issue. Include a code sample, share a project, or share an app that reproduces the issue using https://snack.expo.io/. Please follow the guidelines for providing a MCVE: https://stackoverflow.com/help/mcve

@react-native-bot react-native-bot added the Platform: Android Android applications. label Sep 17, 2018
@react-native-bot
Copy link
Collaborator

It looks like you are using an older version of React Native. Please update to the latest release, v0.57 and verify if the issue still exists.

The ":rewind:Old Version" label will be removed automatically once you edit your original post with the results of running react-native info on a project using the latest release.

@chrusart
Copy link
Contributor

chrusart commented Oct 1, 2018

#20465 in master

@react-native-bot
Copy link
Collaborator

I am closing this issue because it does not appear to have been verified on the latest release, and there has been no followup in a while.

If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here.

@react-native-bot react-native-bot added the Ran Commands One of our bots successfully processed a command. label Oct 16, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Oct 16, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants