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

[android] null pointer exception #2798

Closed
h87kg opened this issue Sep 17, 2015 · 4 comments
Closed

[android] null pointer exception #2798

h87kg opened this issue Sep 17, 2015 · 4 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@h87kg
Copy link

h87kg commented Sep 17, 2015

E/AndroidRuntime(20401): FATAL EXCEPTION: main
E/AndroidRuntime(20401): Process: com.navigatordemo, PID: 20401
E/AndroidRuntime(20401): java.lang.NullPointerException
E/AndroidRuntime(20401): at android.widget.TextView.getExtendedPaddingTop(TextView.java:1824)
E/AndroidRuntime(20401): at android.widget.TextView.getTotalPaddingTop(TextView.java:1918)
E/AndroidRuntime(20401): at com.facebook.react.views.text.ReactTextView.reactTagForTouch(ReactTextView.java:34)
E/AndroidRuntime(20401): at com.facebook.react.uimanager.TouchTargetHelper.getTouchTargetForView(TouchTargetHelper.java:139)
E/AndroidRuntime(20401): at com.facebook.react.uimanager.TouchTargetHelper.findTargetTagForTouch(TouchTargetHelper.java:50)
E/AndroidRuntime(20401): at com.facebook.react.ReactRootView.handleTouchEvent(ReactRootView.java:145)
E/AndroidRuntime(20401): at com.facebook.react.ReactRootView.onInterceptTouchEvent(ReactRootView.java:221)
E/AndroidRuntime(20401): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1859)
E/AndroidRuntime(20401): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
E/AndroidRuntime(20401): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)
E/AndroidRuntime(20401): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
E/AndroidRuntime(20401): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)
E/AndroidRuntime(20401): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
E/AndroidRuntime(20401): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)

@mkonicek
Copy link
Contributor

Thanks for reporting!

Could you please post your JS, ideally a minimal repro?

@h87kg
Copy link
Author

h87kg commented Sep 17, 2015

Here's the source
It's only happened once.

@satya164
Copy link
Contributor

There have been many changes to the touch handling fixing many issues. So hopefully this is fixed. If not, lets reopen.

@codetomylaw
Copy link

java.lang.NullPointerException
com.facebook.react.views.text.ReactTextView.setText(ReactTextView.java:37)

RN: 0.29.2

why ?

@facebook facebook locked as resolved and limited conversation to collaborators Jul 21, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

5 participants