Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2118] Android: Nullpointer Exception in TiUIView.handleBackgroundImage

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-01-25T18:28:42.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterFabian Schuetz
AssigneeMauro Parra-Miranda
Created2012-12-29T18:01:30.000+0000
Updated2016-03-08T07:41:05.000+0000

Description

App runs on iOS, but crashes at start on Android (Version 4.0.3). *Stack trace*
-----------
D/dalvikvm(  765): GREF has increased to 201
W/ActivityManager(   76): Activity idle timeout for ActivityRecord{4137f878 com.factisresearch.gutgepflegt/.GutgepflegtActivity}
D/AndroidRuntime(  765): Shutting down VM
W/dalvikvm(  765): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
E/TiApplication(  765): (main) [980,980] Sending event: exception on thread: main msg:java.lang.NullPointerException; Titanium 3.0.0,2012/12/12 18:49,a5894b3
E/TiApplication(  765): java.lang.NullPointerException
E/TiApplication(  765): 	at org.appcelerator.titanium.view.TiUIView.handleBackgroundImage(TiUIView.java:932)
E/TiApplication(  765): 	at org.appcelerator.titanium.view.TiUIView.processProperties(TiUIView.java:671)
E/TiApplication(  765): 	at ti.modules.titanium.ui.TiUIActivityWindow.processProperties(TiUIActivityWindow.java:442)
E/TiApplication(  765): 	at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:893)
E/TiApplication(  765): 	at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:310)
E/TiApplication(  765): 	at org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:107)
E/TiApplication(  765): 	at android.os.Handler.dispatchMessage(Handler.java:95)
E/TiApplication(  765): 	at android.os.Looper.loop(Looper.java:137)
E/TiApplication(  765): 	at android.app.ActivityThread.main(ActivityThread.java:4424)
E/TiApplication(  765): 	at java.lang.reflect.Method.invokeNative(Native Method)
E/TiApplication(  765): 	at java.lang.reflect.Method.invoke(Method.java:511)
E/TiApplication(  765): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/TiApplication(  765): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/TiApplication(  765): 	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(  765): FATAL EXCEPTION: main

Comments

  1. Daniel Sefton 2013-01-09

    Hi Fabian, Please can you provide a simple reproducible test case for this? Thanks!
  2. Daniel Sefton 2013-01-25

    I've set this to resolved so that the issue can now be edited to provide more info. We appreciate your time in helping to improve our platform. Thanks, Daniel

JSON Source