java.lang.NullPointerException

Appcelerator JIRA | Tamila Smolich | 4 years ago
  1. 0

    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

    Appcelerator JIRA | 4 years ago | Tamila Smolich
    java.lang.NullPointerException
  2. 0

    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

    Appcelerator JIRA | 4 years ago | Tamila Smolich
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at ti.modules.titanium.ui.widget.TiUITableView.registerForTouch()
    2. ti.modules.titanium
      TiUITableView.registerForTouch
      1. ti.modules.titanium.ui.widget.TiUITableView.registerForTouch(TiUITableView.java:214)
      1 frame
    3. org.appcelerator.titanium
      TiViewProxy.forceCreateView
      1. org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:446)
      2. org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:415)
      3. org.appcelerator.titanium.proxy.TiViewProxy.forceCreateView(TiViewProxy.java:400)
      3 frames
    4. ti.modules.titanium
      TiTableView$TTVListAdapter.getView
      1. ti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.createControls(TiTableViewRowProxyItem.java:139)
      2. ti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.setRowData(TiTableViewRowProxyItem.java:286)
      3. ti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.setRowData(TiTableViewRowProxyItem.java:81)
      4. ti.modules.titanium.ui.widget.tableview.TiTableView$TTVListAdapter.getView(TiTableView.java:226)
      4 frames
    5. Android Platform
      FrameLayout.onLayout
      1. android.widget.AbsListView.obtainView(AbsListView.java:2267)
      2. android.widget.ListView.makeAndAddView(ListView.java:1769)
      3. android.widget.ListView.fillDown(ListView.java:672)
      4. android.widget.ListView.fillFromTop(ListView.java:733)
      5. android.widget.ListView.layoutChildren(ListView.java:1622)
      6. android.widget.AbsListView.onLayout(AbsListView.java:2102)
      7. android.view.View.layout(View.java:13754)
      8. android.view.ViewGroup.layout(ViewGroup.java:4362)
      9. android.widget.FrameLayout.onLayout(FrameLayout.java:448)
      9 frames
    6. ti.modules.titanium
      TiTableView.onLayout
      1. ti.modules.titanium.ui.widget.tableview.TiTableView.onLayout(TiTableView.java:555)
      1 frame
    7. Android Platform
      ViewGroup.layout
      1. android.view.View.layout(View.java:13754)
      2. android.view.ViewGroup.layout(ViewGroup.java:4362)
      2 frames
    8. org.appcelerator.titanium
      TiCompositeLayout.onLayout
      1. org.appcelerator.titanium.view.TiCompositeLayout.onLayout(TiCompositeLayout.java:583)
      1 frame
    9. Android Platform
      ViewGroup.layout
      1. android.view.View.layout(View.java:13754)
      2. android.view.ViewGroup.layout(ViewGroup.java:4362)
      2 frames
    10. org.appcelerator.titanium
      TiCompositeLayout.onLayout
      1. org.appcelerator.titanium.view.TiCompositeLayout.onLayout(TiCompositeLayout.java:583)
      1 frame
    11. Android Platform
      ActivityThread.main
      1. android.view.View.layout(View.java:13754)
      2. android.view.ViewGroup.layout(ViewGroup.java:4362)
      3. android.widget.FrameLayout.onLayout(FrameLayout.java:448)
      4. android.view.View.layout(View.java:13754)
      5. android.view.ViewGroup.layout(ViewGroup.java:4362)
      6. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1649)
      7. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1507)
      8. android.widget.LinearLayout.onLayout(LinearLayout.java:1420)
      9. android.view.View.layout(View.java:13754)
      10. android.view.ViewGroup.layout(ViewGroup.java:4362)
      11. android.widget.FrameLayout.onLayout(FrameLayout.java:448)
      12. android.view.View.layout(View.java:13754)
      13. android.view.ViewGroup.layout(ViewGroup.java:4362)
      14. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1866)
      15. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1687)
      16. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:998)
      17. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4212)
      18. android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
      19. android.view.Choreographer.doCallbacks(Choreographer.java:555)
      20. android.view.Choreographer.doFrame(Choreographer.java:525)
      21. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
      22. android.os.Handler.handleCallback(Handler.java:615)
      23. android.os.Handler.dispatchMessage(Handler.java:92)
      24. android.os.Looper.loop(Looper.java:137)
      25. android.app.ActivityThread.main(ActivityThread.java:4745)
      25 frames
    12. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    13. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
      2 frames
    14. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame