Skip to main content

We are using @intercom/intercom-react-native@4.0.1. The stack trace a user is running into is below. Can you let me know what the minimum version we need to upgrade to?

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String io.intercom.android.sdk.models.CustomizationColorsModel.getBackgroundColor()' on a null object reference    at io.intercom.android.sdk.views.TextAttributeView.updateSubmitButtonColor(TextAttributeView.java:122)    at io.intercom.android.sdk.views.holder.AttributeCollectorViewHolder.addAttributeView(AttributeCollectorViewHolder.java:115)    at io.intercom.android.sdk.views.holder.AttributeCollectorViewHolder.renderAttributes(AttributeCollectorViewHolder.java:80)    at io.intercom.android.sdk.views.holder.AttributeCollectorViewHolder.bind(AttributeCollectorViewHolder.java:57)    at io.intercom.android.sdk.conversation.ConversationPartAdapter.onBindViewHolder(ConversationPartAdapter.java:234)    at androidx.recyclerview.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:0)    at androidx.recyclerview.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:7337)    at androidx.recyclerview.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:6194)    at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6460)    at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6300)    at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6296)    at androidx.recyclerview.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2330)    at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1631)    at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1591)    at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:678)    at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep1(RecyclerView.java:4255)    at androidx.recyclerview.widget.RecyclerView.dispatchLayout(RecyclerView.java:4010)    at androidx.recyclerview.widget.RecyclerView.onLayout(RecyclerView.java:4578)    at android.view.View.layout(View.java:24432)    at android.view.ViewGroup.layout(ViewGroup.java:6443)    at androidx.constraintlayout.widget.ConstraintLayout.onLayout(ConstraintLayout.java:1873)    at android.view.View.layout(View.java:24432)    at android.view.ViewGroup.layout(ViewGroup.java:6443)    at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1103)    at android.view.View.layout(View.java:24432)    at android.view.ViewGroup.layout(ViewGroup.java:6443)    at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)    at android.widget.FrameLayout.onLayout(FrameLayout.java:270)    at android.view.View.layout(View.java:24432)    at android.view.ViewGroup.layout(ViewGroup.java:6443)    at androidx.constraintlayout.widget.ConstraintLayout.onLayout(ConstraintLayout.java:1873)    at android.view.View.layout(View.java:24432)    at android.view.ViewGroup.layout(ViewGroup.java:6443)    at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)    at android.widget.FrameLayout.onLayout(FrameLayout.java:270)    at android.view.View.layout(View.java:24432)    at android.view.ViewGroup.layout(ViewGroup.java:6443)    at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1891)    at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1729)    at android.widget.LinearLayout.onLayout(LinearLayout.java:1638)    at android.view.View.layout(View.java:24432)    at android.view.ViewGroup.layout(ViewGroup.java:6443)    at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)    at android.widget.FrameLayout.onLayout(FrameLayout.java:270)    at android.view.View.layout(View.java:24432)    at android.view.ViewGroup.layout(ViewGroup.java:6443)    at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1891)    at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1729)    at android.widget.LinearLayout.onLayout(LinearLayout.java:1638)    at android.view.View.layout(View.java:24432)    at android.view.ViewGroup.layout(ViewGroup.java:6443)    at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)    at android.widget.FrameLayout.onLayout(FrameLayout.java:270)    at com.android.internal.policy.DecorView.onLayout(DecorView.java:789)    at android.view.View.layout(View.java:24432)    at android.view.ViewGroup.layout(ViewGroup.java:6443)    at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:4455)    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3767)    at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2650)    at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9526)    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1343)    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1352)    at android.view.Choreographer.doCallbacks(Choreographer.java:952)    at android.view.Choreographer.doFrame(Choreographer.java:882)    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1326)    at android.os.Handler.handleCallback(Handler.java:958)    at android.os.Handler.dispatchMessage(Handler.java:99)    at android.os.Looper.loopOnce(Looper.java:205)    at android.os.Looper.loop(Looper.java:294)    at android.app.ActivityThread.main(ActivityThread.java:8194)    at java.lang.reflect.Method.invoke(Method.java)    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)

Hey @Jim Baca Racheal from the support engineer team here👋 

 

Although I am not familiar with this specific error, it sounds like you are quite a few versions behind on our React-Native Wrapper, as we are on version 6.3.0. Could you upgrade to the latest version and let me know if the issue persists?

 


I tried but when I upgrade my app crashes when trying to use this with react-native-video:
> java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/exoplayer2/Player$EventListener;

Sounds like I’m not the only one seeing this issue:

https://github.com/react-native-video/react-native-video/issues/3061#issuecomment-1469976033


Hi Jim, Ebenezer here from Engineering Support👋.

Looks like this issue may be caused by the difference in Exoplayer versions. As far I know our current/latest version of the react-native-wrapper uses Exoplayer version 2.19.0

Could you check if the react-native-video you using uses the same version? Changing this to match our version should fix the issue.

 

Hope this helps!🙏


Reply