[TIMOB-24860] Android: "NullPointerException" on TiCompositeLayout
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2019-04-12T16:52:15.000+0000 |
Affected Version/s | Release 6.1.0, Release 6.0.4 |
Fix Version/s | n/a |
Components | Android |
Labels | engTriage, nullpointerexception, sdk-6.0.1.GA |
Reporter | greg |
Assignee | Gary Mathews |
Created | 2017-06-19T23:27:30.000+0000 |
Updated | 2019-04-12T16:52:15.000+0000 |
Description
I'm getting occasional (1-2 per day) java.lang.NullPointerException errors in org.appcelerator.titanium.view.TiCompositeLayout from my users. How do I track this down. The only information I get from the users is that the application crashes. The google Play console reports:
java.lang.NullPointerException:
at android.view.ViewConfiguration.get(ViewConfiguration.java:389)
at android.view.View.<init>(View.java:4048)
at android.view.View.<init>(View.java:4169)
at android.view.ViewGroup.<init>(ViewGroup.java:589)
at android.view.ViewGroup.<init>(ViewGroup.java:585)
at android.view.ViewGroup.<init>(ViewGroup.java:581)
at android.view.ViewGroup.<init>(ViewGroup.java:577)
at org.appcelerator.titanium.view.TiCompositeLayout.<init>(TiCompositeLayout.java:127)
at ti.modules.titanium.ui.widget.TiView.<init>(TiView.java:31)
at ti.modules.titanium.ui.ViewProxy.createView(ViewProxy.java:27)
at ti.modules.titanium.ui.widget.listview.ListSectionProxy.generateChildContentViews(ListSectionProxy.java:714)
at ti.modules.titanium.ui.widget.listview.ListSectionProxy.generateCellContent(ListSectionProxy.java:702)
at ti.modules.titanium.ui.widget.listview.TiListView$TiBaseAdapter.getView(TiListView.java:301)
at android.widget.HeaderViewListAdapter.getView(HeaderViewListAdapter.java:232)
at android.widget.AbsListView.obtainView(AbsListView.java:2929)
at android.widget.ListView.makeAndAddView(ListView.java:1945)
at android.widget.ListView.fillDown(ListView.java:719)
at android.widget.ListView.fillSpecific(ListView.java:1391)
at android.widget.ListView.layoutChildren(ListView.java:1712)
at android.widget.AbsListView.onLayout(AbsListView.java:2723)
at android.view.View.layout(View.java:17938)
at android.view.ViewGroup.layout(ViewGroup.java:5812)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:344)
at android.widget.FrameLayout.onLayout(FrameLayout.java:281)
at ti.modules.titanium.ui.widget.listview.TiListView$ListViewWrapper.onLayout(TiListView.java:181)
at android.view.View.layout(View.java:17938)
at android.view.ViewGroup.layout(ViewGroup.java:5812)
at org.appcelerator.titanium.view.TiCompositeLayout.onLayout(TiCompositeLayout.java:640)
at android.view.View.layout(View.java:17938)
at android.view.ViewGroup.layout(ViewGroup.java:5812)
at android.support.v4.view.ViewPager.onLayout(ViewPager.java:1695)
at android.view.View.layout(View.java:17938)
at android.view.ViewGroup.layout(ViewGroup.java:5812)
at org.appcelerator.titanium.view.TiCompositeLayout.onLayout(TiCompositeLayout.java:640)
at android.view.View.layout(View.java:17938)
at android.view.ViewGroup.layout(ViewGroup.java:5812)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:344)
at android.widget.FrameLayout.onLayout(FrameLayout.java:281)
at android.view.View.layout(View.java:17938)
at android.view.ViewGroup.layout(ViewGroup.java:5812)
at android.support.v7.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:435)
at android.view.View.layout(View.java:17938)
at android.view.ViewGroup.layout(ViewGroup.java:5812)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:344)
at android.widget.FrameLayout.onLayout(FrameLayout.java:281)
at android.view.View.layout(View.java:17938)
at android.view.ViewGroup.layout(ViewGroup.java:5812)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1742)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1494)
at android.view.View.layout(View.java:17938)
at android.view.ViewGroup.layout(ViewGroup.java:5812)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:344)
at android.widget.FrameLayout.onLayout(FrameLayout.java:281)
at com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindow.java:3193)
at android.view.View.layout(View.java:17938)
at android.view.ViewGroup.layout(ViewGroup.java:5812)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2666)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2367)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1437)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7397)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:920)
at android.view.Choreographer.doCallbacks(Choreographer.java:695)
at android.view.Choreographer.doFrame(Choreographer.java:631)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:906)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7229)
at java.lang.reflect.Method.invoke(Native Method:0)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)}}
Hey there! It looks like one of your header-views inside a list-view that is aligned with a composite layout becomes null, so you might want to check in that direction. /cc [~gmathews] in case it's a Titanium issue, thx!
Hi, I've forked the code onto my non-private github https://github.com/securit/mobileVMS. How do I cc Gary Mathews?
[~greg@snapithd.com] I don't have access to the repo (404)
Hi Gary, now that you have access to the repo, have you managed to get anywhere?
[~gmathews] What's going on with this one?
Closed per developer comments.