java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Description: The app crashes on launch. This is a regression, does not occur on 2.1.3. Log output: {code} 10-11 11:50:24.786: E/TiApplication(4067): (main) [15081,15081] Sending event: exception on thread: main msg:java.lang.NullPointerException; Titanium 3.0.0,2012/10/10 18:46,8a4b013 10-11 11:50:24.786: E/TiApplication(4067): java.lang.NullPointerException 10-11 11:50:24.786: E/TiApplication(4067): at ti.modules.titanium.ui.widget.TiUITableView.registerForTouch(TiUITableView.java:214) 10-11 11:50:24.786: E/TiApplication(4067): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:446) 10-11 11:50:24.786: E/TiApplication(4067): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:415) 10-11 11:50:24.786: E/TiApplication(4067): at org.appcelerator.titanium.proxy.TiViewProxy.forceCreateView(TiViewProxy.java:400) 10-11 11:50:24.786: E/TiApplication(4067): at ti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.createControls(TiTableViewRowProxyItem.java:139) 10-11 11:50:24.786: E/TiApplication(4067): at ti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.setRowData(TiTableViewRowProxyItem.java:286) 10-11 11:50:24.786: E/TiApplication(4067): at ti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.setRowData(TiTableViewRowProxyItem.java:81) 10-11 11:50:24.786: E/TiApplication(4067): at ti.modules.titanium.ui.widget.tableview.TiTableView$TTVListAdapter.getView(TiTableView.java:226) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.AbsListView.obtainView(AbsListView.java:2267) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.ListView.makeAndAddView(ListView.java:1769) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.ListView.fillDown(ListView.java:672) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.ListView.fillFromTop(ListView.java:733) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.ListView.layoutChildren(ListView.java:1622) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.AbsListView.onLayout(AbsListView.java:2102) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.FrameLayout.onLayout(FrameLayout.java:448) 10-11 11:50:24.786: E/TiApplication(4067): at ti.modules.titanium.ui.widget.tableview.TiTableView.onLayout(TiTableView.java:555) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.786: E/TiApplication(4067): at org.appcelerator.titanium.view.TiCompositeLayout.onLayout(TiCompositeLayout.java:583) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.786: E/TiApplication(4067): at org.appcelerator.titanium.view.TiCompositeLayout.onLayout(TiCompositeLayout.java:583) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.FrameLayout.onLayout(FrameLayout.java:448) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1649) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1507) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.LinearLayout.onLayout(LinearLayout.java:1420) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.FrameLayout.onLayout(FrameLayout.java:448) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1866) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1687) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:998) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4212) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.Choreographer.doCallbacks(Choreographer.java:555) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.Choreographer.doFrame(Choreographer.java:525) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711) 10-11 11:50:24.786: E/TiApplication(4067): at android.os.Handler.handleCallback(Handler.java:615) 10-11 11:50:24.786: E/TiApplication(4067): at android.os.Handler.dispatchMessage(Handler.java:92) 10-11 11:50:24.786: E/TiApplication(4067): at android.os.Looper.loop(Looper.java:137) 10-11 11:50:24.786: E/TiApplication(4067): at android.app.ActivityThread.main(ActivityThread.java:4745) 10-11 11:50:24.786: E/TiApplication(4067): at java.lang.reflect.Method.invokeNative(Native Method) 10-11 11:50:24.786: E/TiApplication(4067): at java.lang.reflect.Method.invoke(Method.java:511) 10-11 11:50:24.786: E/TiApplication(4067): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) 10-11 11:50:24.786: E/TiApplication(4067): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 10-11 11:50:24.786: E/TiApplication(4067): at dalvik.system.NativeStart.main(Native Method) 10-11 11:50:24.872: E/AndroidRuntime(4067): FATAL EXCEPTION: main 10-11 11:50:24.872: E/AndroidRuntime(4067): java.lang.NullPointerException 10-11 11:50:24.872: E/AndroidRuntime(4067): at ti.modules.titanium.ui.widget.TiUITableView.registerForTouch(TiUITableView.java:214) 10-11 11:50:24.872: E/AndroidRuntime(4067): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:446) 10-11 11:50:24.872: E/AndroidRuntime(4067): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:415) 10-11 11:50:24.872: E/AndroidRuntime(4067): at org.appcelerator.titanium.proxy.TiViewProxy.forceCreateView(TiViewProxy.java:400) 10-11 11:50:24.872: E/AndroidRuntime(4067): at ti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.createControls(TiTableViewRowProxyItem.java:139) 10-11 11:50:24.872: E/AndroidRuntime(4067): at ti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.setRowData(TiTableViewRowProxyItem.java:286) 10-11 11:50:24.872: E/AndroidRuntime(4067): at ti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.setRowData(TiTableViewRowProxyItem.java:81) 10-11 11:50:24.872: E/AndroidRuntime(4067): at ti.modules.titanium.ui.widget.tableview.TiTableView$TTVListAdapter.getView(TiTableView.java:226) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.AbsListView.obtainView(AbsListView.java:2267) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.ListView.makeAndAddView(ListView.java:1769) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.ListView.fillDown(ListView.java:672) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.ListView.fillFromTop(ListView.java:733) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.ListView.layoutChildren(ListView.java:1622) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.AbsListView.onLayout(AbsListView.java:2102) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.FrameLayout.onLayout(FrameLayout.java:448) 10-11 11:50:24.872: E/AndroidRuntime(4067): at ti.modules.titanium.ui.widget.tableview.TiTableView.onLayout(TiTableView.java:555) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.872: E/AndroidRuntime(4067): at org.appcelerator.titanium.view.TiCompositeLayout.onLayout(TiCompositeLayout.java:583) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.872: E/AndroidRuntime(4067): at org.appcelerator.titanium.view.TiCompositeLayout.onLayout(TiCompositeLayout.java:583) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.FrameLayout.onLayout(FrameLayout.java:448) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1649) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1507) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.LinearLayout.onLayout(LinearLayout.java:1420) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.FrameLayout.onLayout(FrameLayout.java:448) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1866) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1687) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:998) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4212) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.Choreographer.doCallbacks(Choreographer.java:555) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.Choreographer.doFrame(Choreographer.java:525) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.os.Handler.handleCallback(Handler.java:615) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.os.Handler.dispatchMessage(Handler.java:92) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.os.Looper.loop(Looper.java:137) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.app.ActivityThread.main(ActivityThread.java:4745) 10-11 11:50:24.872: E/AndroidRuntime(4067): at java.lang.reflect.Method.invokeNative(Native Method) 10-11 11:50:24.872: E/AndroidRuntime(4067): at java.lang.reflect.Method.invoke(Method.java:511) 10-11 11:50:24.872: E/AndroidRuntime(4067): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) 10-11 11:50:24.872: E/AndroidRuntime(4067): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 10-11 11:50:24.872: E/AndroidRuntime(4067): at dalvik.system.NativeStart.main(Native Method) {code} Steps: 1. Run the following code: {code} Titanium.UI.setBackgroundColor('#000'); var win2 = Titanium.UI.createWindow({ backgroundColor : '#fff' }); var ds=[]; var ds1=[]; var row1 = Ti.UI.createTableViewRow(); row1.backgroundColor = 'yellow'; var label2 = Titanium.UI.createLabel({ text : 'I am Row2', width : 'auto' }); var row2 = Ti.UI.createTableViewRow(); row2.add(label2); ds1.push(row2); var table1 = Ti.UI.createTableView({data:ds1,height:100}); row1.add(table1); ds.push(row1); var table = Ti.UI.createTableView({data:ds,height:200,top:20}); win2.add(table); label2.addEventListener('click', function(e) { var win = Ti.UI.createWindow({backgroundColor: 'black'}); win.open({ fullscreen:false }); }) win2.open(); {code} Expected: Should see a tableView with 2 rows Actual: The app crashes
    via by Tamila Smolich,
  • Description: The app crashes on launch. This is a regression, does not occur on 2.1.3. Log output: {code} 10-11 11:50:24.786: E/TiApplication(4067): (main) [15081,15081] Sending event: exception on thread: main msg:java.lang.NullPointerException; Titanium 3.0.0,2012/10/10 18:46,8a4b013 10-11 11:50:24.786: E/TiApplication(4067): java.lang.NullPointerException 10-11 11:50:24.786: E/TiApplication(4067): at ti.modules.titanium.ui.widget.TiUITableView.registerForTouch(TiUITableView.java:214) 10-11 11:50:24.786: E/TiApplication(4067): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:446) 10-11 11:50:24.786: E/TiApplication(4067): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:415) 10-11 11:50:24.786: E/TiApplication(4067): at org.appcelerator.titanium.proxy.TiViewProxy.forceCreateView(TiViewProxy.java:400) 10-11 11:50:24.786: E/TiApplication(4067): at ti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.createControls(TiTableViewRowProxyItem.java:139) 10-11 11:50:24.786: E/TiApplication(4067): at ti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.setRowData(TiTableViewRowProxyItem.java:286) 10-11 11:50:24.786: E/TiApplication(4067): at ti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.setRowData(TiTableViewRowProxyItem.java:81) 10-11 11:50:24.786: E/TiApplication(4067): at ti.modules.titanium.ui.widget.tableview.TiTableView$TTVListAdapter.getView(TiTableView.java:226) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.AbsListView.obtainView(AbsListView.java:2267) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.ListView.makeAndAddView(ListView.java:1769) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.ListView.fillDown(ListView.java:672) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.ListView.fillFromTop(ListView.java:733) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.ListView.layoutChildren(ListView.java:1622) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.AbsListView.onLayout(AbsListView.java:2102) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.FrameLayout.onLayout(FrameLayout.java:448) 10-11 11:50:24.786: E/TiApplication(4067): at ti.modules.titanium.ui.widget.tableview.TiTableView.onLayout(TiTableView.java:555) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.786: E/TiApplication(4067): at org.appcelerator.titanium.view.TiCompositeLayout.onLayout(TiCompositeLayout.java:583) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.786: E/TiApplication(4067): at org.appcelerator.titanium.view.TiCompositeLayout.onLayout(TiCompositeLayout.java:583) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.FrameLayout.onLayout(FrameLayout.java:448) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1649) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1507) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.LinearLayout.onLayout(LinearLayout.java:1420) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.786: E/TiApplication(4067): at android.widget.FrameLayout.onLayout(FrameLayout.java:448) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1866) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1687) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:998) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4212) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.Choreographer.doCallbacks(Choreographer.java:555) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.Choreographer.doFrame(Choreographer.java:525) 10-11 11:50:24.786: E/TiApplication(4067): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711) 10-11 11:50:24.786: E/TiApplication(4067): at android.os.Handler.handleCallback(Handler.java:615) 10-11 11:50:24.786: E/TiApplication(4067): at android.os.Handler.dispatchMessage(Handler.java:92) 10-11 11:50:24.786: E/TiApplication(4067): at android.os.Looper.loop(Looper.java:137) 10-11 11:50:24.786: E/TiApplication(4067): at android.app.ActivityThread.main(ActivityThread.java:4745) 10-11 11:50:24.786: E/TiApplication(4067): at java.lang.reflect.Method.invokeNative(Native Method) 10-11 11:50:24.786: E/TiApplication(4067): at java.lang.reflect.Method.invoke(Method.java:511) 10-11 11:50:24.786: E/TiApplication(4067): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) 10-11 11:50:24.786: E/TiApplication(4067): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 10-11 11:50:24.786: E/TiApplication(4067): at dalvik.system.NativeStart.main(Native Method) 10-11 11:50:24.872: E/AndroidRuntime(4067): FATAL EXCEPTION: main 10-11 11:50:24.872: E/AndroidRuntime(4067): java.lang.NullPointerException 10-11 11:50:24.872: E/AndroidRuntime(4067): at ti.modules.titanium.ui.widget.TiUITableView.registerForTouch(TiUITableView.java:214) 10-11 11:50:24.872: E/AndroidRuntime(4067): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:446) 10-11 11:50:24.872: E/AndroidRuntime(4067): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:415) 10-11 11:50:24.872: E/AndroidRuntime(4067): at org.appcelerator.titanium.proxy.TiViewProxy.forceCreateView(TiViewProxy.java:400) 10-11 11:50:24.872: E/AndroidRuntime(4067): at ti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.createControls(TiTableViewRowProxyItem.java:139) 10-11 11:50:24.872: E/AndroidRuntime(4067): at ti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.setRowData(TiTableViewRowProxyItem.java:286) 10-11 11:50:24.872: E/AndroidRuntime(4067): at ti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.setRowData(TiTableViewRowProxyItem.java:81) 10-11 11:50:24.872: E/AndroidRuntime(4067): at ti.modules.titanium.ui.widget.tableview.TiTableView$TTVListAdapter.getView(TiTableView.java:226) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.AbsListView.obtainView(AbsListView.java:2267) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.ListView.makeAndAddView(ListView.java:1769) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.ListView.fillDown(ListView.java:672) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.ListView.fillFromTop(ListView.java:733) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.ListView.layoutChildren(ListView.java:1622) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.AbsListView.onLayout(AbsListView.java:2102) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.FrameLayout.onLayout(FrameLayout.java:448) 10-11 11:50:24.872: E/AndroidRuntime(4067): at ti.modules.titanium.ui.widget.tableview.TiTableView.onLayout(TiTableView.java:555) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.872: E/AndroidRuntime(4067): at org.appcelerator.titanium.view.TiCompositeLayout.onLayout(TiCompositeLayout.java:583) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.872: E/AndroidRuntime(4067): at org.appcelerator.titanium.view.TiCompositeLayout.onLayout(TiCompositeLayout.java:583) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.FrameLayout.onLayout(FrameLayout.java:448) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1649) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1507) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.LinearLayout.onLayout(LinearLayout.java:1420) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.widget.FrameLayout.onLayout(FrameLayout.java:448) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.View.layout(View.java:13754) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewGroup.layout(ViewGroup.java:4362) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1866) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1687) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:998) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4212) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.Choreographer.doCallbacks(Choreographer.java:555) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.Choreographer.doFrame(Choreographer.java:525) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.os.Handler.handleCallback(Handler.java:615) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.os.Handler.dispatchMessage(Handler.java:92) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.os.Looper.loop(Looper.java:137) 10-11 11:50:24.872: E/AndroidRuntime(4067): at android.app.ActivityThread.main(ActivityThread.java:4745) 10-11 11:50:24.872: E/AndroidRuntime(4067): at java.lang.reflect.Method.invokeNative(Native Method) 10-11 11:50:24.872: E/AndroidRuntime(4067): at java.lang.reflect.Method.invoke(Method.java:511) 10-11 11:50:24.872: E/AndroidRuntime(4067): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) 10-11 11:50:24.872: E/AndroidRuntime(4067): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 10-11 11:50:24.872: E/AndroidRuntime(4067): at dalvik.system.NativeStart.main(Native Method) {code} Steps: 1. Run the following code: {code} Titanium.UI.setBackgroundColor('#000'); var win2 = Titanium.UI.createWindow({ backgroundColor : '#fff' }); var ds=[]; var ds1=[]; var row1 = Ti.UI.createTableViewRow(); row1.backgroundColor = 'yellow'; var label2 = Titanium.UI.createLabel({ text : 'I am Row2', width : 'auto' }); var row2 = Ti.UI.createTableViewRow(); row2.add(label2); ds1.push(row2); var table1 = Ti.UI.createTableView({data:ds1,height:100}); row1.add(table1); ds.push(row1); var table = Ti.UI.createTableView({data:ds,height:200,top:20}); win2.add(table); label2.addEventListener('click', function(e) { var win = Ti.UI.createWindow({backgroundColor: 'black'}); win.open({ fullscreen:false }); }) win2.open(); {code} Expected: Should see a tableView with 2 rows Actual: The app crashes
    via by Tamila Smolich,
    • java.lang.NullPointerException at ti.modules.titanium.ui.widget.TiUITableView.registerForTouch(TiUITableView.java:214) at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:446) at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:415) at org.appcelerator.titanium.proxy.TiViewProxy.forceCreateView(TiViewProxy.java:400) at ti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.createControls(TiTableViewRowProxyItem.java:139) at ti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.setRowData(TiTableViewRowProxyItem.java:286) at ti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.setRowData(TiTableViewRowProxyItem.java:81) at ti.modules.titanium.ui.widget.tableview.TiTableView$TTVListAdapter.getView(TiTableView.java:226) at android.widget.AbsListView.obtainView(AbsListView.java:2267) at android.widget.ListView.makeAndAddView(ListView.java:1769) at android.widget.ListView.fillDown(ListView.java:672) at android.widget.ListView.fillFromTop(ListView.java:733) at android.widget.ListView.layoutChildren(ListView.java:1622) at android.widget.AbsListView.onLayout(AbsListView.java:2102) at android.view.View.layout(View.java:13754) at android.view.ViewGroup.layout(ViewGroup.java:4362) at android.widget.FrameLayout.onLayout(FrameLayout.java:448) at ti.modules.titanium.ui.widget.tableview.TiTableView.onLayout(TiTableView.java:555) at android.view.View.layout(View.java:13754) at android.view.ViewGroup.layout(ViewGroup.java:4362) at org.appcelerator.titanium.view.TiCompositeLayout.onLayout(TiCompositeLayout.java:583) at android.view.View.layout(View.java:13754) at android.view.ViewGroup.layout(ViewGroup.java:4362) at org.appcelerator.titanium.view.TiCompositeLayout.onLayout(TiCompositeLayout.java:583) at android.view.View.layout(View.java:13754) at android.view.ViewGroup.layout(ViewGroup.java:4362) at android.widget.FrameLayout.onLayout(FrameLayout.java:448) at android.view.View.layout(View.java:13754) at android.view.ViewGroup.layout(ViewGroup.java:4362) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1649) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1507) at android.widget.LinearLayout.onLayout(LinearLayout.java:1420) at android.view.View.layout(View.java:13754) at android.view.ViewGroup.layout(ViewGroup.java:4362) at android.widget.FrameLayout.onLayout(FrameLayout.java:448) at android.view.View.layout(View.java:13754) at android.view.ViewGroup.layout(ViewGroup.java:4362) at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1866) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1687) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:998) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4212) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725) at android.view.Choreographer.doCallbacks(Choreographer.java:555) at android.view.Choreographer.doFrame(Choreographer.java:525) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711) at android.os.Handler.handleCallback(Handler.java:615) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4745) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) at dalvik.system.NativeStart.main(Native Method)
    No Bugmate found.