Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

Random nullpointerexception on android

$
0
0

I have an application which uses scrollable views practically in every windows. At times however the whole app crashes with a null pointer exception in a random sequence. I believe it happens more often when 1 click on an tableviewrow in one of the scrollable views. 2.the app opens a new window with a scrollable view. 3. I scroll a bit there 4. close window and back in original scrolable view 5. scroll here

TiApplication: (main) [169,36386] Sending event: exception on thread: main msg:java.lang.NullPointerException; Titanium 3.2.2,2014/03/05 12:22,96e9a07
[ERROR] :  TiApplication: java.lang.NullPointerException
[ERROR] :  TiApplication:   at android.view.ViewConfiguration.get(ViewConfiguration.java:313)
[ERROR] :  TiApplication:   at android.view.View.<init>(View.java:3448)
[ERROR] :  TiApplication:   at android.view.ViewGroup.<init>(ViewGroup.java:459)
[ERROR] :  TiApplication:   at android.support.v4.view.ViewPager.<init>(ViewPager.java:296)
[ERROR] :  TiApplication:   at ti.modules.titanium.ui.widget.TiUIScrollableView$1.<init>(TiUIScrollableView.java:77)
[ERROR] :  TiApplication:   at ti.modules.titanium.ui.widget.TiUIScrollableView.buildViewPager(TiUIScrollableView.java:76)
[ERROR] :  TiApplication:   at ti.modules.titanium.ui.widget.TiUIScrollableView.<init>(TiUIScrollableView.java:63)
[ERROR] :  TiApplication:   at ti.modules.titanium.ui.ScrollableViewProxy.createView(ScrollableViewProxy.java:68)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:463)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:213)
[ERROR] :  TiApplication:   at ti.modules.titanium.ui.ScrollableViewProxy.handleMessage(ScrollableViewProxy.java:145)
[ERROR] :  TiApplication:   at android.os.Handler.dispatchMessage(Handler.java:98)
[ERROR] :  TiApplication:   at android.os.Looper.loop(Looper.java:136)
[ERROR] :  TiApplication:   at android.app.ActivityThread.main(ActivityThread.java:5116)
[ERROR] :  TiApplication:   at java.lang.reflect.Method.invokeNative(Native Method)
[ERROR] :  TiApplication:   at java.lang.reflect.Method.invoke(Method.java:515)
[ERROR] :  TiApplication:   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
[ERROR] :  TiApplication:   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
[ERROR] :  TiApplication:   at dalvik.system.NativeStart.main(Native Method)

Viewing all articles
Browse latest Browse all 7655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>